How do TRIRIGA custom tasks work?

I’m trying to understand how a TRIRIGA custom task exactly works, but I am not having luck. What I have been checking (more than one time) is the “Custom task” topic of the Application Building for the IBM TRIRIGA Application Platform document, and also the “Chapter 4. Extending connector functions” of the Connector User Guide document.

What I would like to do is quite simple I think. I want to create a workflow that takes the ID of a person, which corresponds with his real identification number. This ID string will be passed to a custom task which will analyze if it is valid or not, returning a Boolean to the next workflow task. I have developed the Java code to verify IDs, but I don’t know how to connect this Java class with the custom task, in order to receive the ID string and to send the resulting Boolean back to the workflow. Thank you in advance!

There is a small simple example included with the TRIRIGA install. Start by taking a look at it, build it, and use it in a workflow. You can find it by extracting the files in the TririgaCustomTask.jar file located in [install-dir]/tools/BusinessConnect. The source is in the “src” folder in the “com/tririga/pub/sample” path. It is called There is some JavaDoc in the “doc” folder (just open index.html). You will need the TririgaCustomTask.jar in your compile classpath. I think that will get you pretty close to what you need to do. After going through that, post further questions you might have.

Continue reading

One thought on “How do TRIRIGA custom tasks work?

  1. Pingback: Top Ten TRIRIGAFEEDIA posts of July 2016 | TRIRIGAFEEDIA

Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.