ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | jawe List | March 2004 Index

<--  Date Index  --> <--  Thread Index  -->

Condition on transition


Hi,
I have this xpdl file extract:
 
<Transition From="PrintInitialValue" Id="PK2_AA" Name="Transition" To="Increment">
  <Condition Type="CONDITION">a <= b</Condition>
 
With this code I can access from XPDL Parser the "Type" attribute:
 
Condition cond = (Condition)refTransition.get("Condition");
String transitionType = cond.get("Type").toString;
 
refTransition is my Transition object.
After the execution, transitionType is set to "Condition", all ok.
 
Now, if I have this xpdl:
 
<Transition From="PrintInitialValue" Id="PK2_AA" Name="Transition" To="Increment">
 
without a real condition tag, my transitionType string is however set to "Condition".
I thought that the returned value in this case was "" or null.
This is a bug or my fault?
 
Thanks for suggestions,   
    Alessandro
 
 
 
 
 
 


<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.