04-23-2014 09:13 AM
…
@Resource(name = "taskService")
private TaskService taskService;
…
public void complete(String taskId, Map<String, Object> variables){
taskService.complete(taskId, variables);
}
…
@Resource(name = "taskService")
private TaskService taskService;
…
public void complete(String taskId, Map<String, Object> variables){
taskService.setVariablesLocal(taskId, variables);
taskService.complete(taskId, variables);
}
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
…
<property name="history" value="full" />
…
</bean>
…
@Resource(name = "formService")
private FormService formService;
…
public void complete(String taskId, Map<String, String> variables){
formService.submitTaskFormData(taskId, variables);
}
04-23-2014 09:53 AM
04-24-2014 03:34 AM
/**
* Called when the task is successfully executed,
* and the required task paramaters are given by the end-user.
* @param taskId the id of the task to complete, cannot be null.
* @param variables task parameters. May be null or empty.
* @param localScope If true, the provided variables will be stored task-local,
* instead of process instance wide (which is the default for {@link #complete(String, Map)}).
* @throws ActivitiObjectNotFoundException when no task exists with the given id.
*/
void complete(String taskId, Map<String, Object> variables, boolean localScope);
04-24-2014 03:41 AM
04-24-2014 03:43 AM
04-24-2014 03:49 AM
08-26-2014 10:30 AM
08-26-2014 10:47 AM
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.