Skip to main content
5-Regular Member
February 10, 2012
Question

Calling Info*Engine xml tasks from a workflow

  • February 10, 2012
  • 1 reply
  • 645 views

What is the correct way of calling an Info*Engine xml task from a workflow expression robot? Thanks.




The ability to quote is a serviceable substitute for wit -- William Somerset Maugham

1 reply

1-Visitor
February 10, 2012

below is a sample psudo code using which you can read a task and iterate through results.



com.infoengine.SAK.Task task = new com.infoengine.SAK.Task ("yourIEtask.xml");


task.setParam("param",value); //if requires any parameters to be passed dynamically


task.setUsername(sessionUserName );


task.invoke();


//Read the output using Group.


com.infoengine.object.factory.Group containers = task.getGroup("GROUP_OUT_NAME");



for (int i = 0; i < containers.getElementCount(); i++)


{


MyVar="+ (String)containers.getAttributeValue(i, "att");


}