mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-22 15:12:38 +00:00
Merged SHA-SIMP-1 (5.1.0) to HEAD (5.1)
105016: SHA-935: Repository Invite Flow Changes
- Added new invitation-add-direct.bpmn20.xml workflow
- Added bootstrapping of new workflow
- Changed InvitationServiceImpl to allow setting of workflows used
- Added configuration of workflows used in invitationService bean
- Added repository properties for default workflows
- Changed InvitationServiceImpl.getWorkflowDefinition to take an enum argument
- Changed abstract testNominatedInvitationExistingUser to accommodate both current and new invite flows
- Added test of new flow to Activiti test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@110788 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
44
config/alfresco/workflow/invitation-add-direct.bpmn20.xml
Normal file
44
config/alfresco/workflow/invitation-add-direct.bpmn20.xml
Normal file
@@ -0,0 +1,44 @@
|
||||
<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://alfresco.org/workflows/internal">
|
||||
|
||||
<process isExecutable="true" id="activitiInvitationNominatedAddDirect" name="Add user activiti invitation process">
|
||||
|
||||
<startEvent id="start" activiti:formKey="inwf:inviteToSiteTask" />
|
||||
|
||||
<!-- TODO: SHA-944: Change Order of Email Send to Be After Adding Site -->
|
||||
<sequenceFlow id="flow1" sourceRef="start" targetRef="sendInvite" />
|
||||
|
||||
<serviceTask id="sendInvite" name="Send Invite" activiti:delegateExpression="${SendNominatedInviteDelegate}" />
|
||||
|
||||
<sequenceFlow id="flow2" sourceRef="sendInvite" targetRef="accepted" />
|
||||
|
||||
<serviceTask id="accepted" name="Accepted" activiti:delegateExpression="${AcceptNominatedInviteDelegate}" />
|
||||
<sequenceFlow id="flow3" sourceRef="accepted" targetRef="inviteAccepted" />
|
||||
|
||||
<userTask id="inviteAccepted" name="Invitation Accepted"
|
||||
activiti:formKey="inwf:acceptInviteTask" >
|
||||
<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;
|
||||
</activiti:string>
|
||||
</activiti:field>
|
||||
</activiti:taskListener>
|
||||
</extensionElements>
|
||||
<humanPerformer>
|
||||
<resourceAssignmentExpression>
|
||||
<formalExpression>${initiator.exists() ? initiator.properties.userName : 'admin'}</formalExpression>
|
||||
</resourceAssignmentExpression>
|
||||
</humanPerformer>
|
||||
</userTask>
|
||||
|
||||
<sequenceFlow id="flow4" sourceRef="inviteAccepted" targetRef="end" />
|
||||
|
||||
<endEvent id="end" />
|
||||
</process>
|
||||
|
||||
</definitions>
|
||||
Reference in New Issue
Block a user