- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback!
Basic Workflow Design - CRUD
CRUD is short for Create, Read, Update and Delete. This is a suitable design for managing data entities, based on an identity, designation and other simple attributes.
This instruction guides you how to build a CRUD for an existing table, so you can manage the data in that table.
Prerequisites
The actual table is already created and exists both in database and in Repository.
Navigation Tree does already exist.
Work Sequence
- Create Workflow
- Create List Portlet
- Create Detail Portlet
- Add Workflow Actions
- Create Task
- Add Task to Navigation
Create Workflow
A workflow for a CRUD have 2 portlets; one to list the entities and one to see all details.
Name the Workflow Entity + "_Manage", SalesItem_Manage.
- Add 2 Portlets
- Connect Entry Point and the first portlet with a Transition. Then the first portlet with the second.
Create List Portlet
- Right click on the first Portlet and select "Associate Portlet". Then click on "New Portlet". Name the Portlet Entity + "_List".
- Add List Segment
- Add a Data Model, select a Table and select the fields that you want to see in the list
- Add the fields to the list in the order they shall have
- Add Toolbar Icons
Create Detail Portlet
- Right click on the second Portlet and select "Associate Portlet". Then click on "New Portlet". Name the Portlet Entity + "_Detail".
- Add 3 Segment, one for Main Information, Attributes and Modified
- Add a Data Model, select a Table and select the fields that you want to see in the list
- Add the fields to the right segment
- Add Toolbar Icons
Add Workflow Actions
- Add a Entry point
- Add the List portlet and draw a transition from entry point to the portlet
- On portlet level (the bottom) add standard Close and Filter action buttons. Also add hot key Refresh.
- On list level (row data and right click) add Edit.dot as row data. Also add Edit.dot, View.dot, Copy.dot and Delete.dot as right click options. Complement with a Create.dot-button.
- Add the detail portlet and draw a transition from the list portlet to the detail portlet
- Associate all list actions to the transition
- For the detail portlet, add standard buttons for Cancel, Create, Create (Copy), Save, Save&Close, Delete and OK. Complement with hokey for Refresh.
Create Task
- Right click on workflow and chose Create Taks to create a task that pinpoints the entry point of the workflow. Set the labels on appropriate language for the task.
Was this article helpful?