MyDocumentum

Community with Real World Experience

 

Login

Items Tagged With process variable

Starting Workflow with Process Variable
Written By: James Azarja
Section:

Category:

2009-02-20 17:43:59
1
2
3
4
5
6
IDfWorkflowBuilder workflowBuilder = session.newWorkflowBuilder(<processid>);
IDfId wid = workflowBuilder.initWorkflow();
IDfWorkflowEx workflow = (IDfWorkflowEx) session.getObject(wid);
workflow.setPrimitiveObjectValue("VARNAME1",value1);
IDfId idWf = workflowBuilder.runWorkflow();
return idWf;

 

  • Don't forget to include bpm_infra.jar (C:\Program Files\Documentum\Shared\bpm_infra.jar)
  • IDfWorkflowBuilder documentation can be found in DFC JavaDoc
  • IDfWorkflowEx documentation can be found in BPM JavaDoc


Where is the IDfWorkitemEx ?
Written By: James Azarja
Section:

Category:

2009-02-02 14:56:21

Question: I cannot compile a workflow method that using IDfWorkitemEx interface.

Answer: IDfWorkitemEx interface is enhanced version of IDfWorkitem. In case you want to use (import) this interface in your workflow method, simply add bpm_infra.jar to your classpath (eclipse project classpath). bpm_infra.jar is usually located at C:\Program Files\Documentum\Shared.

IDfWorkitemEx can be used to retrieve workflow's process variables, example:

1
2
3
4
5
6
7
/* Updating process variables, i.e sdt. For more info on IDfWorkitemEx, 
refer to java doc corresponding to com.documentum. BPM.IDfWorkitemEx*/

if (workitem instanceof IDfWorkitemEx) {
IDfWorkitemEx workitemEx = (IDfWorkitemEx) workitem;
Object var0 = workitemEx.getPrimitiveVariableValue("Var0");
//Some useful operation with var0
workitemEx.setPrimitiveObjectValue("Var0", var0);
}

 






There are 2 items tagged with process variable. You can view all our tags in the Tag Cloud

<< Start < Previous 1 Next > End >>
Page 1 Of 1