How to create triggers in IcJava API.

How to create triggers in IcJava API.

book

Article ID: KB0085028

calendar_today

Updated On:

Products Versions
TIBCO InConcert -
Not Applicable -

Description

Resolution:
Description: I need to trigger an event when a task becomes ready.  The task object
is created using the java api and I would like to create the trigger
at the same time.  I can't however locate any documention on how to do
this.  The java doc for the api lists nothing more than the method
names for the IcEventSpec class.  Could I please get either some additional
documentation or a code example of how to implement this function
using java ?

Solution:

You must now create an EventSpec and IcActionSpec before calling createTrigger.  
You would use the constructor for EventSpec that takes an event type integer and a
string id.  The string id will be the exported id of the task after you have
created.  You will use the IcActionSpec constructor for the Call Procedure type.
The first string is the action name you used when you registered the action and
the second string are any parameters you want to pass to the RPC call.

You then use IcClient::createTrigger to create the trigger using the above
EventSpec and ActionSpec.

Guy

Environment

Product: TIBCO InConcert Version: 6.2.1 OS: All --------------------

Issue/Introduction

How to create triggers in IcJava API.