Created
July 21, 2014 07:16
-
-
Save menski/5c5877d1ff6bc8a357b4 to your computer and use it in GitHub Desktop.
Welcome the player to the casino
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bpmn2:scriptTask id="scriptTask" name="Welcome Message" scriptFormat="groovy"> | |
<bpmn2:extensionElements> | |
<camunda:inputOutput> | |
<camunda:inputParameter name="player"> | |
<!-- script as input parameter --> | |
<camunda:script scriptFormat="groovy"> | |
players = ["Fritz", "Heinz", "Horst", "Klaus"] | |
players[new Random().nextInt(players.size())] | |
</camunda:script> | |
</camunda:inputParameter> | |
</camunda:inputOutput> | |
</bpmn2:extensionElements> | |
<!-- script as script task --> | |
<bpmn2:script> | |
println "Hello $player! Welcome to our casino" | |
</bpmn2:script> | |
</bpmn2:scriptTask> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment