12-09-2010 11:25 AM
12-09-2010 03:15 PM
12-10-2010 05:17 AM
Request URL:http://localhost:8080/share/proxy/alfresco/api/task/jbpm$5/formprocessor
Request MethodOST
Status Code:500 Internal Server Error
Request Headers
Content-Type:application/json; charset=UTF-8
Origin:http://localhost:8080
Referer:http://localhost:8080/share/page/user/editor/task-edit?taskId=jbpm$5&referrer=tasks
User-Agent:Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.55 Safari/534.3
X-Requested-With:application/x-www-form-urlencoded
Request Payload
{"assoc_bpm_assignee_added":"workspace://SpacesStore/6b4a44fd-da87-4d5b-bb1e-79f07797cdc0","assoc_bpm_assignee_removed":"workspace://SpacesStore/e897752a-4194-4585-8ecf-2631ae9454c2","prop_bpm_description":"Workflow C - another test","prop_bpm_comment":"","prop_bpm_dueDate":"","prop_bpm_percentComplete":"0","prop_bpm_priority":"3","prop_bpm_status":"Not Yet Started","prop_transitions":"Done","assoc_packageItems_added":"","assoc_packageItems_removed":""}
Response Headers
Cache-Control:no-cache
Connection:close, close
Content-Length:465
Content-Type:application/json;charset=UTF-8
Date:Fri, 10 Dec 2010 10:06:18 GMT
Pragma:no-cache
Server:Apache-Coyote/1.1
12-10-2010 10:34 AM
12-10-2010 11:34 AM
12-16-2010 04:04 AM
05-14-2012 02:41 PM
execution.setVariable('bpm_assignee', "User name or Variable with a user");
<forms>
<form>
<field-visibility>
…
<show id="bpm:assignee" />
</field-visibility>
<appearance>
…
<set id="assignee" appearance="title" label-id="workflow.set.assignee" />
…
<field id="bpm:assignee" label-id="workflow.field.assign_to"
set="assignee" />
…
</appearance>
</form>
</forms>
<?xml version="1.0" encoding="UTF-8"?>
<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://activiti.org/bpmn20">
<process id="docElaboracao" name="Elaboração de Documentos">
<startEvent id="start" name="Start" activiti:formKey="wf:submitDocElaboracao"></startEvent>
<userTask id="elaboracao" name="Elaboração" activiti:dueDate="${bpm_workflowDueDate}" activiti:assignee="${bpm_assignee.properties.userName}" activiti:formKey="wf:elaboracao">
<extensionElements>
<activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>if (typeof bpm_workflowPriority != 'undefined') task.priority = bpm_workflowPriority;
if (typeof bpm_comment != 'undefined') task.setVariable('bpm_comment', bpm_comment);</activiti:string>
</activiti:field>
</activiti:taskListener>
<activiti:taskListener event="assignment" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>execution.setVariable('bpm_assignee', task.getVariable('bpm_assignee'));
</activiti:string>
</activiti:field>
</activiti:taskListener>
<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>
execution.setVariable('bpm_comment', task.getVariable('bpm_comment'));
execution.setVariable('wf_developer', person);
execution.setVariable('bpm_dueDate', task.dueDate);
execution.setVariable('bpm_priority', task.priority);
</activiti:string>
</activiti:field>
</activiti:taskListener>
</extensionElements>
</userTask>
<userTask id="verificacao" name="Verificação" activiti:dueDate="${bpm_workflowDueDate}" activiti:assignee="${bpm_assignee.properties.userName}" activiti:formKey="wf:verificacao">
<extensionElements>
<activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>if (typeof bpm_workflowPriority != 'undefined') task.priority = bpm_workflowPriority;
if (typeof bpm_comment != 'undefined') task.setVariable('bpm_comment', bpm_comment);</activiti:string>
</activiti:field>
</activiti:taskListener>
<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>execution.setVariable('bpm_assignee', task.getVariable('bpm_assignee'));
execution.setVariable('bpm_comment', task.getVariable('bpm_comment'));
execution.setVariable('bpm_dueDate', task.dueDate);
execution.setVariable('bpm_priority', task.priority);
execution.setVariable('wf_reviewOutcome', task.getVariable('wf_reviewOutcome'));</activiti:string>
</activiti:field>
</activiti:taskListener>
</extensionElements>
</userTask>
<userTask id="aprovacao" name="Aprovação" activiti:dueDate="${bpm_workflowDueDate}" default="flow9" activiti:assignee="${bpm_assignee.properties.userName}" activiti:formKey="wf:aprovacao">
<extensionElements>
<activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>if (typeof bpm_workflowPriority != 'undefined') task.priority = bpm_workflowPriority;
if (typeof bpm_comment != 'undefined') task.setVariable('bpm_comment', bpm_comment);</activiti:string>
</activiti:field>
</activiti:taskListener>
<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>execution.setVariable('bpm_comment', task.getVariable('bpm_comment'));
execution.setVariable('bpm_dueDate', task.dueDate);
execution.setVariable('bpm_priority', task.priority);
execution.setVariable('wf_reviewOutcome', task.getVariable('wf_reviewOutcome'));</activiti:string>
</activiti:field>
</activiti:taskListener>
</extensionElements>
</userTask>
<exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway>
<exclusiveGateway id="exclusivegateway2" name="Exclusive Gateway"></exclusiveGateway>
<sequenceFlow id="flow1" name="" sourceRef="start" targetRef="elaboracao"></sequenceFlow>
<sequenceFlow id="flow2" name="" sourceRef="elaboracao" targetRef="verificacao"></sequenceFlow>
<sequenceFlow id="flow3" name="" sourceRef="verificacao" targetRef="exclusivegateway1"></sequenceFlow>
<sequenceFlow id="flow4" name="" sourceRef="exclusivegateway1" targetRef="aprovacao">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${wf_reviewOutcome == 'Approve'}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="flow5" name="" sourceRef="exclusivegateway1" targetRef="elaboracao">
<extensionElements>
<activiti:executionListener event="take" class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener">
<activiti:field name="script">
<activiti:string>execution.setVariable('bpm_assignee', task.getVariable('wf_developer'));</activiti:string>
</activiti:field>
</activiti:executionListener>
</extensionElements>
</sequenceFlow>
<sequenceFlow id="flow6" name="" sourceRef="aprovacao" targetRef="exclusivegateway2"></sequenceFlow>
<userTask id="aprovado" name="Elaboração Aprovada" activiti:assignee="${initiator.exists() ? initiator.properties.userName : 'admin'}" activiti:formKey="wf:aprovado">
<extensionElements>
<activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>if (typeof bpm_comment != 'undefined') task.setVariable('bpm_comment', bpm_comment);</activiti:string>
</activiti:field>
</activiti:taskListener>
</extensionElements>
</userTask>
<sequenceFlow id="flow9" name="" sourceRef="exclusivegateway2" targetRef="aprovado">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${wf_reviewOutcome == 'Approve'}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="flow10" name="" sourceRef="exclusivegateway2" targetRef="elaboracao">
<extensionElements>
<activiti:executionListener event="take" class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener">
<activiti:field name="script">
<activiti:string>execution.setVariable('bpm_assignee', task.getVariable('wf_developer'));</activiti:string>
</activiti:field>
</activiti:executionListener>
</extensionElements>
</sequenceFlow>
<endEvent id="end" name="End"></endEvent>
<sequenceFlow id="flow11" name="" sourceRef="aprovado" targetRef="end"></sequenceFlow>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_docElaboracao">
<bpmndi:BPMNPlane bpmnElement="docElaboracao" id="BPMNPlane_docElaboracao">
<bpmndi:BPMNShape bpmnElement="start" id="BPMNShape_start">
<omgdc:Bounds height="35" width="35" x="110" y="170"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="elaboracao" id="BPMNShape_elaboracao">
<omgdc:Bounds height="55" width="105" x="220" y="160"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="verificacao" id="BPMNShape_verificacao">
<omgdc:Bounds height="55" width="105" x="400" y="160"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="aprovacao" id="BPMNShape_aprovacao">
<omgdc:Bounds height="55" width="105" x="580" y="160"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1">
<omgdc:Bounds height="40" width="40" x="432" y="70"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="exclusivegateway2" id="BPMNShape_exclusivegateway2">
<omgdc:Bounds height="40" width="40" x="612" y="280"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="aprovado" id="BPMNShape_aprovado">
<omgdc:Bounds height="55" width="105" x="790" y="160"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="end" id="BPMNShape_end">
<omgdc:Bounds height="35" width="35" x="950" y="170"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
<omgdi:waypoint x="145" y="187"></omgdi:waypoint>
<omgdi:waypoint x="220" y="187"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
<omgdi:waypoint x="325" y="187"></omgdi:waypoint>
<omgdi:waypoint x="400" y="187"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
<omgdi:waypoint x="452" y="160"></omgdi:waypoint>
<omgdi:waypoint x="452" y="110"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
<omgdi:waypoint x="472" y="90"></omgdi:waypoint>
<omgdi:waypoint x="632" y="90"></omgdi:waypoint>
<omgdi:waypoint x="632" y="160"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5">
<omgdi:waypoint x="432" y="90"></omgdi:waypoint>
<omgdi:waypoint x="272" y="90"></omgdi:waypoint>
<omgdi:waypoint x="272" y="160"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6">
<omgdi:waypoint x="632" y="215"></omgdi:waypoint>
<omgdi:waypoint x="632" y="280"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9">
<omgdi:waypoint x="652" y="300"></omgdi:waypoint>
<omgdi:waypoint x="842" y="299"></omgdi:waypoint>
<omgdi:waypoint x="842" y="215"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10">
<omgdi:waypoint x="612" y="300"></omgdi:waypoint>
<omgdi:waypoint x="272" y="300"></omgdi:waypoint>
<omgdi:waypoint x="272" y="215"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10">
<omgdi:waypoint x="612" y="300"></omgdi:waypoint>
<omgdi:waypoint x="272" y="300"></omgdi:waypoint>
<omgdi:waypoint x="272" y="215"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow11" id="BPMNEdge_flow11">
<omgdi:waypoint x="895" y="187"></omgdi:waypoint>
<omgdi:waypoint x="950" y="187"></omgdi:waypoint>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
<type name="wf:submitDocElaboracao">
<parent>bpm:startTask</parent>
<mandatory-aspects>
<aspect>bpm:assignee</aspect>
</mandatory-aspects>
</type>
<type name="wf:elaboracao">
<parent>bpm:workflowTask</parent>
<mandatory-aspects>
<aspect>bpm:assignee</aspect>
</mandatory-aspects>
</type>
<type name="wf:verificacao">
<parent>wf:activitiReviewTask</parent>
<mandatory-aspects>
<aspect>bpm:assignee</aspect>
</mandatory-aspects>
</type>
<type name="wf:aprovacao">
<parent>wf:activitiReviewTask</parent>
</type>
<type name="wf:aprovado">
<parent>bpm:workflowTask</parent>
</type>
05-21-2012 01:27 AM
10-31-2013 11:42 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.