10-05-2012 07:43 AM
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
<process id="collectDemo" name="collectDemo">
<endEvent id="endevent1" name="End"></endEvent>
<subProcess id="collectDoc" name="collectDoc">
<multiInstanceLoopCharacteristics isSequential="false" activiti:collection="${bpm_assignees}" activiti:elementVariable="subAssignee"></multiInstanceLoopCharacteristics>
<startEvent id="startevent1" name="Start"></startEvent>
<endEvent id="endevent2" name="End"></endEvent>
<userTask id="alfrescoUsertask1" name="Alfresco User Task" activiti:assignee="${subAssignee.properties.userName}" activiti:formKey="ewf:processTask"></userTask>
<serviceTask id="servicetask1" name="Service Task" activiti:expression="#{generateTemplateBean.generateTemplate(execution)}"></serviceTask>
<sequenceFlow id="flow8" name="" sourceRef="alfrescoUsertask1" targetRef="endevent2"></sequenceFlow>
<sequenceFlow id="flow13" name="" sourceRef="startevent1" targetRef="servicetask1"></sequenceFlow>
<sequenceFlow id="flow14" name="" sourceRef="servicetask1" targetRef="alfrescoUsertask1"></sequenceFlow>
</subProcess>
<startEvent id="alfrescoStartevent1" name="Alfresco start" activiti:formKey="ewf:collectStart"></startEvent>
<userTask id="review_task2" name="review_task" activiti:assignee="${initiator.properties.userName}" activiti:formKey="ewf:viewTask"></userTask>
<sequenceFlow id="flow10" name="" sourceRef="alfrescoStartevent1" targetRef="collectDoc"></sequenceFlow>
<sequenceFlow id="flow11" name="" sourceRef="collectDoc" targetRef="review_task2"></sequenceFlow>
<sequenceFlow id="flow12" name="" sourceRef="review_task2" targetRef="endevent1"></sequenceFlow>
</process>
</definitions>
public class GenerateTemplateBean{
public void generateTemplate(DelegateExecution execution){
ActivitiScriptNode bpmPackage = (ActivitiScriptNode)execution.getVariables().get("bpm_package");
}
}
10-17-2012 06:44 AM
ActivitiScriptNode scriptNode = (ActivitiScriptNode)executionEntity.getVariable(WorkflowNotificationUtils.PROP_PACKAGE);
NodeRef packagenode = scriptNode.getNodeRef();
NodeRef docRef= serviceRegistry.getNodeService().getChildAssocs(packagenode).get(0).getChildRef();
03-31-2014 04:56 AM
04-04-2014 08:43 AM
04-07-2014 11:42 AM
NodeService nodeService=serviceRegistry.getNodeService ();
String nodeName=nodeService.getProperty (docRef, ContentModel.PROP_NAME);
04-09-2014 03:27 AM
09-13-2014 07:39 AM
09-14-2014 12:46 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.