×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Java Subcollaboration question (eGate 4.5.3)

Java Subcollaboration question (eGate 4.5.3)

Java Subcollaboration question (eGate 4.5.3)

(OP)
In looking at the documentation in the pdf, I have not been able to determine whether or not using a subcollaboration causes the data passed in (using the setInstanceMap() method) is parsed when .invoke for the subcollab is called.  In 4.1.2 it is possible to actually remove the ($event-parse) call if you end up using the same data that was is in the main collab, but I'm not sure how any of that would works in 4.5.3.

Thanks for any assistance.

Coley

RE: Java Subcollaboration question (eGate 4.5.3)

Do following steps in main-collaboration to call sub-collaboration
    1- Create a global variable of type JsubCollabMapInfo to keep track of mapping info of sub-collaboration
            JSubCollabMapInfo subCollabMapInfo;
    2- Within the executeBusinessRules() method, create a boolean variable that checks sub-collaboration Rule’s success
            boolean subCollabSuccess;
    3- Add a rule to create mapping info for sub-collaboration and assign it to the variable subCollabMapInfo
            subCollabMapInfo = this.jCollabController.createSubCollabMapInfo("crOR_StarPC_ADT_to_QS",this)
            where:
                 crOR_StarPC_AST_to_QS is a sub-collaboration
    4- Set sub-collaboration's inbound event type instance
            subCollabMapInfo.setInstanceMap("etOR_StarPC_ADT_in",subCollabMapInfo.getParentReferenceETD        
            ("etOR_StarPC_ADT_in"),getetOR_StarPC_ADT_PID_PV1_in().rawInput(),null)
            where:
                etOR_StarPC_ADT_in is an inbound instance name of sub-collaboration
                getetOR_StarPC_ADT_PID_PV1_in() returns reference of main-collaboration's inbound instance
    5- Set sub-collaboration's outbound event type instance
            subCollabMapInfo.setInstanceMap("etOR_StarPC_QS_ADT_out",subCollabMapInfo.getParentReferenceETD("etOR_StarPC_QS_ADT_out"),null,null)
            where:
                etOR_StarPC_QS_ADT_out is an outbound instance name of sub-collaboration
    6- Invoke the sub-collaboration rule and assign a value to the subCollabSuccess
            subCollabSuccess = this.jCollabController.invoke(subCollabMapInfo);                
    7- Copy data returned by sub-collaboration rule to GenericOutEvent         
            getetGeneric_out().setPayload(STCTypeConverter.toString(subCollabMapInfo.getOutputData("etOR_StarPC_QS_ADT_out")))

hope this will help you...
meenasar.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close