mirror of
https://github.com/sartography/sample-process-models.git
synced 2025-02-24 13:48:10 +00:00
User: alex@sartography.com clicked save for manage-procurement/procurement/requisition-order-management/raise-new-demand-request/raise_new_demand_request-master.bpmn
This commit is contained in:
parent
2c300f409a
commit
b6e2d307b8
@ -44,13 +44,11 @@
|
||||
<bpmn:scriptTask id="Activity_1qcx18z" name="Set Categories">
|
||||
<bpmn:incoming>Flow_0hflz9l</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_1k3j31g</bpmn:outgoing>
|
||||
<bpmn:script># When available, need to determine if current user is a project lead
|
||||
# Only projec leads have access to Compensation
|
||||
<bpmn:script># Determine if current user is a project lead
|
||||
is_lead = current_user["username"] in get_group_members("Leads")
|
||||
|
||||
# Set Default Category List
|
||||
which_categories_list = [
|
||||
{
|
||||
"label": "Compensation",
|
||||
"value": "compensation"
|
||||
},
|
||||
{
|
||||
"label": "Procurement",
|
||||
"value": "procurement"
|
||||
@ -59,7 +57,15 @@ which_categories_list = [
|
||||
"label": "Travel",
|
||||
"value": "travel"
|
||||
}
|
||||
]</bpmn:script>
|
||||
]
|
||||
|
||||
# Only project leads have access to Compensation
|
||||
if is_lead:
|
||||
lead_only_category = {
|
||||
"label": "Compensation",
|
||||
"value": "compensation"
|
||||
}
|
||||
which_categories_list.append(lead_only_category)</bpmn:script>
|
||||
</bpmn:scriptTask>
|
||||
<bpmn:exclusiveGateway id="Gateway_1m8umui">
|
||||
<bpmn:incoming>Flow_1etakrx</bpmn:incoming>
|
||||
|
Loading…
x
Reference in New Issue
Block a user