Configuration Workflow

Description
jp
Posts: 1
Joined: Wed Feb 28, 2007 9:42 am

Configuration Workflow

Postby jp » Wed Feb 28, 2007 10:14 am

Hi all,

I'm specifying the workflow in polarion. I have some questions concerning the conditions and functions of an action.

<workflow initial-status="open">
<transitions>
<transition from="inprogress" to="resolved" action="resolve"/>
<transition from="closed" to="open" action="reset"/>
<action id="resolve" name="Resolve">
<roles>
<role name="project_manager"/>
<role name="workitem.assignee"/>
<role name="assistant"/>
</roles>
<required>
<field name="resolution"/>
<field name="assignee"/>
</required>
<conditions>
<condition name="LinkedWorkItemsStatus">
<param name="link.roles" value="has_parent,depends_on"/>
<param name="valid.states" value="resolved,closed,ready"/>
</condition>
</conditions>
</action>

<action id="reset" name="reset">
<roles>
<role name="project_manager"/>
<role name="assistant"/>
</roles>
<cleared>
<field name="resolution"/>
</cleared>
<functions>
<function name="LinkedWorkItemsStatusChange">
<param name="back.link.roles" value="implements"/>
<param name="valid.states" value="created,ready"/>
<param name="target.state" value="open"/>
<param name="clear.attribs" value="resolution"/>
</function>
</functions>
</action>

Which functionality does "LinkedWorkItemsStatus" and "LinkedWorkItemsStatusChange" have ? In the online help are there small informations.
When should i use LinkedWorkItemsStatus or LinkedWorkItemsStatusChange ?
If a WorkItem is depended from an other, is it possible does the actual WorkItem can change the states of a linked WorkItem ?


thanks
Josef

Stepan Roh
Posts: 34
Joined: Tue Apr 04, 2006 8:46 am

Postby Stepan Roh » Mon Mar 26, 2007 10:33 am

Hello.

Action is permitted if user has one of the <roles>, if all <required> fields are set and if all <conditions> are satisified.

Condition "LinkedWorkItemsStatus" traverses incoming and outgoing links of defined roles and passes if all target work items are in one of valid states.

Parameters:
- back.link.roles - comma separated list of incoming link roles to check
- link.roles - comma separated list of outgoing link roles to check
- valid.states - comma separated list of valid states

When action is executed then <functions> are called.

Function "LinkedWorkItemsStatusChange" will change state of linked work items.

Parameters:
- back.link.roles - comma separated list of incoming link roles to check
- link.roles - comma separated list of outgoing link roles to check
- valid.states - comma separated list of valid states (= states which are permitted to stay as-is and will not be changed to target.state)
- target.state - target state to change all linked work items to
- clear.attribs - comma separated list of attributes which will be cleared
Stepan Roh
Polarion Software


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 4 guests