loggedRoleMapping.setName("Initiator");
loggedRoleMapping.setEndpoint(initiator);
String defVerId = pm.getProcessDefinitionProductionVersionByAlias(alias);
instanceId = pm.initializeProcess(defVerId);
ProcessInstance instance = pm.getProcessInstance(instanceId);
setVariableValue(instance);
pm.putRoleMapping(instanceId, loggedRoleMapping);
pm.executeProcessByWorkitem(instanceId,new org.uengine.kernel.ResultPayload());
}else{
instanceId = (String)sr.getParameter(WorkflowHandler.ARGS_INSTANCEID);
String tracingTag = (String)sr.getParameter(WorkflowHandler.ARGS_TRACINGTAG);
String taskId = (String)sr.getParameter(WorkflowHandler.ARGS_TASKID);
ProcessInstance instance = pm.getProcessInstance(instanceId);
setVariableValue(instance);
pm.completeWorkitem(instanceId, tracingTag, taskId, new org.uengine.kernel.ResultPayload());
}