The DCR Swimlane Editor enables you to create scenarios. You can also create scenarios using DCR Simulator.
New scenarios can be created from the DCR Dashboard page or from within DCR Whiteboard under the Simulation menu. Select Create New Scenario which will launch DCR Swimlane Editor.
Fill out the Type, Business Type and Simulation Title.
You can now drag activities listed in the top into the different swimlanes. We first drag Fill out expense report into the Employee swimlane, then Approve into Manager and finally Pay out into Finance.
A scenario can be classified as
- as is
- to be
Using the business type the scenarios can easily be filtered on the dashboard of the portal showing the scenarios of a given process.
You can verify that the scenario is valid by clicking the Validate Trace button:
A notification is shown in that the scenarios is valid and all activities are marked with a green border indicating that the scenario is valid.
What happens if we swap Approve and Pay out?
We notice that we could fill out the expense report as the border is green. The border on Pay out is red indicating that this activity cannot be executed at the moment.
If you change this scenario to a forbidden scenario we notice that the scenario is now valid as the DCR process engine captures the error and mark which activity cannot be executed with a yellow border.
As the scenario is Forbidden it is considered a valid trace as it cannot be executed.
Adding duration to scenarios
In DCR Swimlane Editor you can add time. You simply drag the Clock in the upper left corner to the swimlane. You will be prompted to will out the duration:
The result appears as follows:
If you add another clock between Approve and Pay out with a duration of 7 days and then click Validate Trace you will notice that the trace is invalid as the deadline of 7 days is passed.
If you click on a clock icon you can modify the duration.
Export a swimlane
You can export a swimlane as an image or in dcr xml format by using the File menu. For images you can choose Horizontal and Vertical placement of the swimlanes, i.e. whehter the roles are on the left as above (Horizontal) or in the top (Vertical).
Export scenario will produce a log in dcr xml log format.