How to create Adhoc workflow in UCM

Posted by vijaykumar.yenne on Oracle Blogs See other posts from Oracle Blogs or by vijaykumar.yenne
Published on Mon, 19 Apr 2010 23:11:50 -0800 Indexed on 2010/04/20 11:14 UTC
Read the original article Hit count: 637

Filed under:
UCM has an inbuilt workflow engine that can handle document centric workflow approval/rejection process to ensure the right set of assets go into the repository. Anybody who has gone through the documentation is aware that there are two types of work flows that can be defined using the Workflow Admin applet in UCM namely Criteria and Basic While criteria is an Automatic workflow  process based on certain metadata attributes (Security Group and One of the Metadata Fields) , basic workflow is a manual workflow that need to be initiated by the admin. Any workflow  that can be put on the white board can be translated into the UCM wokflow process and there are concepts like sub workflows, tokens, events. idoc scripting that be introduced to handle any kind of complex workflows. There is a specific Workflow Implementation guide that explains the concepts in detail. One of the standard queries i come across is how to handle adhoc workflows where at the time of contributing the content, the contributors would like to decide on the workflow to be initiated and the users to be picked for approval in each step, hence this post.
This is what i want to acheive, i would like to display on my Checkin Screen on the kind of workflows that a contributor could choose from:
WF1.GIF

Based on the Workflow the contributor chooses, the other metadata fields (Step One, Step Two and Step Three)  need to be filled in and these fields decide who the approvers are going to be.

1. Create a criteria workflow called One_Step_Review
wf2.GIF

2.create two tokens StepOne <$wfAddUser(xWorkflowStepOne, "user")$>,  OrginalAuthor  <$wfAddUser(wfGet("OriginalAuthor"), "user")$>
View image

3.create two steps in the work flow created (One_Step_Review)
View image

4. Edit Step1 of the Workflow and add the Step One token and select the review permission
View image

5. In the exit conditions tab have atleast One reveiwer
View image

6. In the events tab add an entry event <$wfSet("OriginalAuthor",dDocAuthor)$> to capture the contributor who shall be notified in the second step of the workflow
View image

7. Add the second step Notify_Author to the workflow

8. Add the original author token to the above step

9.  Enable the workflow

10. Open the configration manager applet and create a Metadata field Workflow with option list enabled and add the list of values as show here
View image

11. Create another metadata field WorkflowStepOne with option list configured to the Users View. This shall display all the users registered with UCM, which when selected shall be associated with the tokens associated with the workflow. Refer the above token.
View image

As indicated in the above steps you could create multiple work flows and associate the custom metadata field values to the tokens so that the contributors can decide who can approve their  content.



© Oracle Blogs or respective owner

Related posts about UCM Adhoc Workflow