05-20-2012 04:51 PM
<f:event type="preRenderView" listener="#{businessProcess.startTask(taskId, true)}" />
to start the user task and
<h:commandButton action="#{businessProcess.completeTask(true)}" value="Complete" />
to complete the user task. 05-21-2012 04:28 AM
05-21-2012 08:05 AM
05-24-2012 02:33 AM
public class Controller {
@Inject
private BusinessProcessAssociationManager associationManager;
@Inject
private TaskService taskService;
public void pauseUserTask() {
Task task = associationManager.getTask();
if(task == null) {
throw new RuntimeException("Not working on a task");
}
// flush the variables
Map<String, Object> changedVariables = associationManager.getBeanStore().getAllAndClear();
if(changedVariables.size()>0) {
taskService.setVariables(task.getId(), changedVariables);
}
// remove the association with the current task.
associationManager.disAssociate();
}
}
05-27-2012 03:40 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.