It's all about the answers!

Ask a question

RTC work flow customization


Vijayveer Reddy (17220) | asked Nov 19 '15, 1:59 a.m.
retagged Dec 02 '15, 2:03 p.m. by Ken Tessier (84117)
Hi,

we have a query on workflow customization. 

we are having a Work Item having 6 states, In that a field called Defect type,

If a defect type is X then state has to come from State 4 to State 6,  and If a Defect type is Y then state has to come from state 4 to State 5 and then state 6.

Is there any script or any condition that we can write or any script that we can apply to achieve this kind of flow in RTC.

Thank you in advance....!

2 answers



permanent link
Tiago Moura (8387) | answered Nov 19 '15, 10:37 a.m.
 You can use conditional rules to implement what you want. Search for: Required Attributes for Condition

If your rule is complex, maybe you need to implement a custom precondition.

https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.workitem.doc/topics/t_defining_precond_fuactions_web.html&scope=null

https://jazz.net/wiki/bin/view/Main/AttributeCustomization

permanent link
Cesar Sasaki (511172118) | answered Nov 19 '15, 10:54 a.m.
 I'm thinking you can use a Validator Script, with something like this :

In "State 4" you can have the actions for "State 5" and "State 6" 
Then you can validate :

IF Defect Type = "X" and State = "State 5" then Error: "You have to use action to state 6".

and

IF Defect Type = Y and State = State 6 then Error  : "you have to use action to state 5".

I think that may help!

Your answer


Register or to post your answer.