Hi there,
Bonita Studio 6.3.3, Java 1.7.0.67, Windows 8.1
as previously stated relatively new to Java and its convoluted way of doing things (and never really understanding javadoc documentation (just not enough examples))…I love COBOL, VBA and Assembler…and PL/S if you’ve ever heard of it…
Anyway following the various examples I’m very slowly getting to the point of success, but having an issue with starting tasks…
-
What is the difference between startProcess and executeFlowNode which both execute a process?
-
When assigning a task to specific individual which is best to use startProcess or executeFlowNode?
-
I’ve managed to hard code my groovy as follows:
processId = processAPI.getProcessDefinitionId(task, processVersion);
processAPI.startProcess(processId);
But I want the latest version of the process, not the hardcoded version.
getProcessDefinition requires a long, which comes from getProcessDefinitionId(process, processVersion)
But there’s the problem I haven’t got the latest ProcessVersion…I obviously don’t understand something…how do I get the latest version of the process so I can get the right processID…
4: I’m following get-possible-users-task-and-execute-task-user
and have a couple of questions:
final ProcessInstance processInstance = getProcessAPI().startProcess(processDefinition.getId()); final HumanTaskInstance userTask = waitForUserTask("step1", processInstance);4.1 Start the process, and wait for it to initialize (I think). Where it says “step1”, this is the first task in the pool, but how do we specify wait for the pool as this is where the first form is? Do I just specify the pool name?
4.2 In the example there is activityID, where does this come from as it’s not referenced elsewhere in the code…
// Execute task for first user in list processAPI.assignUserTask(activityId, possibleUsers.get(0).getId()); processAPI.executeFlowNode(possibleUsers.get(0).getId(), activityId)Sorry for my lack of learning, I’m trying though.
thanks and regards
Seán