Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WorkFlow and LAPI

Status
Not open for further replies.

hanreb

Technical User
Jan 23, 2008
90
US
Hi,

Can I set the Assignee in a Workflow step using LAPI ??

Thanks,
Sunu
 
isn't it called reassign task ?

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
Yes it is ReassignTask(). That's what I found in the API doc. But I was unable to reassign a user.
Do u have any code for the same.

I will reevaluate my code and post it.
If you could let me know where I am going wrong.

Thank You,
sunu
 
no i don't have any code

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
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

}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top