diff --git a/playground/tencent/pairing-with-dan-and-alex/main.bpmn b/playground/tencent/pairing-with-dan-and-alex/main.bpmn index 56d45139..0e515539 100644 --- a/playground/tencent/pairing-with-dan-and-alex/main.bpmn +++ b/playground/tencent/pairing-with-dan-and-alex/main.bpmn @@ -20,13 +20,61 @@ Activity_0c72gmg + Gateway_1jml3b2 + Gateway_0nhehc8 Activity_1uwpon2 + + + + { + "approvers": [ + "dan@sartography.com" + ] +} + { + "approvers": [ + "dan@sartography.com" + ], + "lane_owners": { + "approvers_one": [ + "dan@sartography.com" + ] + } +} + + + { + "approvers": [ + "dan@sartography.com", + "dingli@gmail.com" + ] +} + { + "approvers": [ + "dan@sartography.com", + "dingli@gmail.com" + ], + "lane_owners": { + "approvers_one": [ + "dan@sartography.com" + ], + "approvers_two": [ + "dingli@gmail.com" + ] + } +} + + + Flow_0gi8bwf Flow_0qdzj5v - lane_owners = {"approvers_one": approvers} + lane_owners = {"approvers_one": [approvers[0]]} + +if len(approvers) > 1: + lane_owners["approvers_two"] = [approvers[1]] Flow_130ey79 @@ -54,21 +102,21 @@ - + Flow_0qdzj5v Flow_0pjve0h Flow_0ejuqyx - + Flow_12aqem8 - Flow_1brfsjf + Flow_1k5uue7 Flow_1l5hvh4 - do_you_approve == "rejected" + approved @@ -86,7 +134,7 @@ Flow_1l5hvh4 Flow_1etxa8x - approval + approved = approval_one and approval_two @@ -106,15 +154,30 @@ By clicking the button below you approve this request. Flow_0pjve0h Flow_12aqem8 - + Flow_0ejuqyx + Flow_03muudp + Flow_1j9t6zx + + + + Flow_1brfsjf + Flow_1j9t6zx + Flow_1k5uue7 + + + + Flow_03muudp Flow_1brfsjf + + len(approvers) == 1 + - + @@ -124,7 +187,7 @@ By clicking the button below you approve this request. - + @@ -171,10 +234,19 @@ By clicking the button below you approve this request. - + + + + + + + + + + - + @@ -185,7 +257,7 @@ By clicking the button below you approve this request. - + @@ -200,17 +272,16 @@ By clicking the button below you approve this request. - + - + - - - + + @@ -230,6 +301,21 @@ By clicking the button below you approve this request. + + + + + + + + + + + + + + +