Tuesday 20 December 2016

WorkFlow Creation :Release Object / Remove Status

How to Release objects with workflow ?

1) Open Workflow Designer

2) File ->New Root Template
   In the dialog box fill the following values:
   New Root Template: Name you want
   Based On Root Template:Empty Template

3) Press ok

Please create workflow as shown in the snapshot
[Note: Just add the block as shown and add the handler to status task]




BMIDE Release status snapshot



Handler : create-status
Description:    Attaches the specified status type to the root task
ARGUMENTS: -status
Value: The name provided should be the name of a status type already defined in the Business Modeler IDE, not the display name.

If this argument is not supplied, the workflow process name is used.A status object is created that is not based on a status type, which means that effectivity and configuration may not work against it.


Handler : set-status
Argument:-action
Value:append

Attaches the status objects from the root task to the target objects, not impacting
any previous status objects applied to the same targets.

[other argument value for set-status handler are replace/delete/rename etc]


Important :
The differences between the create-status handler and the add-status handler are:
• The create-status handler creates a status object and attaches it to the root
task.
• The add-status handler takes the status object that is attached to the root task
and applies it to the target objects (same as the append mode for the set-status
handler.)


How to Remove status from  objects with workflow ?

Please do as shown in the snapshot and you are done ...:-)


You can also use the utility if you want to remove /add status :
Utility name : release_man

How to restrict user from submitting the object having status ?
You can use the rule handler(EPM-check-target-object) and to do that...please follow the snapshot




Try submitting the released status object to workflow

As we have added the handler you will get the error as shown below





1 comment:

  1. 2023 and this still helpful, thank you.

    ReplyDelete