Creating data object with state
- Download Tutorial.vpp. You can also find this file at the bottom of this tutorial.
- Open the downloaded .vpp file in Visual Paradigm. To open a project, select Project > Open from the application toolbar.
- Open the business process diagram Inspection. You should see the diagram below:
- Let's create a data object from the task Perform Inspection. Move your mouse pointer over the task. Press on the Resource Catalog icon and drag it out.
- Release the mouse button and select Data Object from Resource Catalog.
- Enter Inspection Order as the name of data object and press Enter to confirm.
- Let's set the state of the Inspection Order Right click on it and select State > Create... from the popup menu.
- In the Create State dialog box, enter Created as (state) name and then click OK.
You should see the name of the data object appear, like this:
Reusing data object
- Let's continue with the remaining flow of the diagram. Let's say after the task Approve Inspection, the Inspection Order will be in 'approved' state. Let's represent this. First, create a data object from the task Approve Inspection and name it Inspection Order, which is the as the previously created data object.
- Press Enter and you will be prompted to confirm the reuse of data object. Click Yes.
You can see the data object is created with letter 'a' appear at top left, while the original data object (shape) has an 'M' appear at same position. The letter 'a' stands for auxiliary view, while 'M' stands for master view. Each model element can have one master view and unlimited number of auxiliary views. The placement of element in model hierarchy is controlled by the master view.
- Let's create a state for Inspection Order. Right click on it and select State > Create... from the popup menu. By the way, in the popup menu you can see the state Created available for selection. In case you need to represent a state that has been created before you can simply select the state there.
- In the Create State dialog box, enter Approved as (state) name and then click OK.
- Repeatedly reuse Approve Inspection on other parts of the business process diagram, with different states selected. Finally, you diagram should look like this: