DMS Operation Tutorial
The following tutorial shows an example usage of the Get Document, Add Document and Update Document DMS
functionality deployed in the Stardust RAD environment.
For detailed information
on setting up embedded Tomcat or creating a dynamic Webproject, please refer to
the chapter
Getting Started of the Stardust
Support Case Example tutorial.
Importing the Example Model
Perform the following steps to download the example model directly.
- Download the following ZIP file containing the example model
dms.zip
- Create a dynamic Web project designed to deploy Stardust Process
Platform models to run in the Stardust Portal.
For detailed information on creating dynamic Web projects for usage with
the Stardust Portal, please refer to the
Rapid Application Development guide.
- Right-click the project and select
Import > Process Manager > Process Model.
Click Next and browse to the location of the example
model extracted from the zip file.
- Deploy the model and execute the process DMS Operation
Creating the Example Model
Perform the following steps to create the example model:
- Create a dynamic Web project. For more information, please refer to the
Rapid Application Development guide.
- Create a process definition called DMS Operation
- Open the process definition diagram of DMS Operation process
- Create a manual trigger
- Create three application activities named Add Document, Get Document,
and Update Document respectively.
- Create a route activity named Get New Document Name
- Connect these activities
- Connect the manual trigger to the Add Document activity
- Create a DMS Operation and name it as DMS Operation Add Document
Figure: DMS Operation Application
- Open the properties of the DMS Operation Add Document application
- Select DMS Operation from the left pane and select Add Document from the Operation drop-down list
Figure: Properties of DMS Operation Add Document
- Connect the DMS Operation Add Document application to the Add Document
application activity
- Similarly, create two more DMS operation application and name them as DMS Operation Get Document
and DMS Operation Update Document
- Connect the DMS Operation Get Document application to the
Get Document application activity
- Open the properties of the DMS Operation Get Document application
- Select DMS Operation from the left pane and select Get Document from the Operation drop-down list
Figure: Properties of DMS Operation Get Document
- Connect the DMS Operation Update Document application to the
Update Document application activity
- Open the properties of the DMS Operation Update Document application
- Select DMS Operation from the left pane and select Update Document from the Operation drop-down list
Figure: Properties of DMS Operation Update Document
- Create primitive data type My Doc of string type and specify My Document in Default Value field
- Create primitive data type New Name of string type and specify Versioned in Default Value field
- Create primitive data type Create Version of boolean type and select the Default Value check box
- Create three document data named Request Form, New Name of Form and Updated Form
Figure: Document Data
- Open the properties page of each document data
- Select DMS Document from the left pane and select default from the Declared Types
Figure: Properties of Document Data
Specifying Data Mappings
You need to specify appropriate data mappings between each activity and data.
- Specify the following In-data mapping for the Add Document application activity
Figure: Add Document - In Mapping
- Specify the following Out-data mapping for the Add Document application activity
Figure: Add Document - Out Mapping
- Specify the following In-data mapping for the Get Document application activity
Figure: Get Document - In Mapping
- Specify the following Out-data mapping for the Get Document application activity
Figure: Get Document - Out Mapping
- Specify the following In-data mapping for the Get New Document Name route activity
Figure: Get New Document Name - In Mapping
- Specify the following Out-data mapping for the Get New Document Name route activity
Figure: Get New Document Name - Out Mapping
- Specify the following In-data mapping for the Update Document application activity
Figure: Update Document - In Mapping
- Specify the following In-data mapping for the Update Document application activity
Figure: Update Document - In Mapping
- Specify the following Out-data mapping for the Update Document application activity
Figure: Update Document - Out Mapping
- Specify the following In-data mapping for the Show Document manual activity
Figure: Show Document - In Mapping
The following screenshot displays the complete model.
Figure: Complete DMS Operation Model
Executing the Workflow
When you execute the DMS Operation process for add document, in the background,
a DMS document gets created and added to
the repository. For the add document operation, document is created without any version.
Then, the document name and its version get updated and the updated document name is stored in the repository.
Along with the Show Document activity the updated document name and its new version gets displayed.
Perform the following steps:
- Start your server and deploy the model. For details on how to
deploy a model, please refer to the chapter
Deploying a Workflow Model of the Support Case Example.
- Start the Stardust Portal as described in the chapter
Logging in the Stardust Portal of the End User
Handbook. Login as administrator (motu/motu). You can use the
Shift-F8 short key.
- In the Workflow Perspective, start the process DMS Operation
Figure: Start DMS Operation Process
In the activity panel, Show Document activity displays the DMS document.
Figure: Show Document
- Click on the document named Versioned. Also, note that the document version gets displayed along with document.
Figure: Document named Version
- Switch to the Administration perspective
- In the Administration Views, click Document Repository view
- In the Root > process-instances directory, drill-down to the latest executed process instance.
The document name gets displayed.
Figure: Document
- Right-click the document and select Version History
Figure: Version History
The version history of the document gets displayed.
Figure: Version History of the Document
- Upload a new document and perform other document operations on the document