To use the ReAssignTask API first I am trying to get a list of the tasks.
But I get the error
com.opentext.api.LLUnknownFieldException: LLValue unknown field name: SubWorkTask_TaskID
I used ListTaskStatus as below
//Get the Workflow ID
LLValue workID = (new LLValue()).setAssocNotSet();
//Start the workflow using the map
if(wf.StartWorkflow(map, "Name of New Workflow", additions, workID) != 0)
{
System.out.println("StartWorkflow Failed.");
}
else
System.out.println("Workflow Initiated. The new workflow's ID is " + workID);
int wid= workID.toInteger();
System.out.println("wid is "+ wid);
LLValueEnumeration enumeration;
LLValue tasks = (new LLValue()).setTable();
int status=wf.ListTaskStatus(wid, 0, 0, tasks);
enumeration = tasks.enumerateValues();
System.out.println("status is "+status);
while (enumeration.hasMoreElements())
{
LLValue currentRec = enumeration.nextValue();
System.out.println("Task id is "+ currentRec.toInteger("SubWorkTask_TaskID"));
Could you please help...
Thank You,
sunu
}