How to dynamic call process on TIBCO BusinessWorks 6

In the previous post we talk about one feature (the format-dateTime XPath function) which behavior on TIBCO BusinessWorks 6 wasn’t the same that on BusinessWorks 5, but today we are going to talk about another similar situation.

On BusinessWorks 5 it was usual to have Dynamic Call Processes, so you could invoke one SubPorcess or another depending on the data you have on real-time. This features is present on the BusinessWorks 6 version but to do that it’s not that easy or, at least, are not the same set of steps you have to do.


So, today, we are going to explain how to perform a dynamic call process on TIBCO BusinessWorks. To do that, we need these requirements:

  • A master process with the Invoke / Call Process activity.
  • A few Child processes with the same WSDL.

In my example, we are going to go forward with this master process or parent process:

TIBCOBusinessStudio_2016-02-22_16-10-39

And with three child processes that only perform a Log activity to show the text “I’m ChildX” and X goes from A to C:

TIBCOBusinessStudio_2016-02-22_16-10-29

Ok, that seems simple, but how does it works? Ok. These are the things you should be aware of:

  • All the Child processes should use the same WSDL because they need to have the same interfaces.
  • All the Child processes should have a unique service name identifier, because this identifier is one of the part the engine is going to use to find the right child process:

TIBCOBusinessStudio_2016-02-22_16-14-03

  • All the Child processes interfaces should be registered in the Service Registry. You should be sure that the check labeled: “Register with Service Registry” as you can see here:

TIBCOBusinessStudio_2016-02-22_16-17-20

 

 

 

 

 

 

  • The parent process should add a Set EPR activity with the follow input configuration:

TIBCOBusinessStudio_2016-02-22_16-18-55

The first two arguments are the same because they belong to the BW Process project and the last value are the way you are going to determinate the Interface Name of the Child Process you are going to invoke. In our example are ChildA , ChildB and ChildC and we are using an input value to choose between all the possible values.

And that’s it! Now, you only have to deploy and test your process and your are going to have an output similar to this, depending on the invocations you were doing:

TIBCOBusinessStudio_2016-02-22_16-21-14

As always, you can take a look at the source code in our GitHub repo.

Advertisements

2 thoughts on “How to dynamic call process on TIBCO BusinessWorks 6

  1. Hi again,

    After checking the associated code of this example I could see all options and configuration for the “Invoke” task.

    Thanks and regards!

  2. Hi,

    I have a question about this example. What is the configuration of “Invoke” task after “SetEPR”?? I dont understand how to connect these two tasks to call the appropriate subprocess?

    Many thanks and regards!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s