by fcai » Tue Jul 07, 2009 12:26 am
1. create before add message trigger (or after add message trigger)
CT(conditional transition) with the following script code:
String udfValue = message.getUdfValue("Cost");
if (udfValue.equals("100"))
message.setMstatus("B");
else if (udfValue.equals("200"))
message.setMstatus("C");
else if (udfValue.equals("300"))
message.setMstatus("D");
return message;
2. create workflow "Conditional Transition Flow" with state 'A', 'B', 'C', 'D'.
3. create a message type 'note' with transition from 'A'->' A'
and using predefined trigger 'CT'. (can not do 'A' to 'B', 'A' to 'C' or 'A' to 'D' in same message type note)
4 create custom field 'Cost' in "Conditional Transition Flow' with type Integer(Also tried String type too and not working neither).
Set value=200
5. Then I create Category 'Purchase' using 'Conditional Transition flow'
6. create a project from category above.
7. create message 'note' in project and project state still in 'A', it does not jump to 'B'.
Have I done something wrong here or missed something?
Thanks,
Fred