Re: R: R: how can i do to get activity's transitions?

Monique Maker <[email protected]> Mon, 26 Sep 2005 16:34:09 +0300
Newsgroups gmane.comp.java.enhydra.shark
Message-ID <[email protected]>
Hello Fabrizio,

AFAIK there is no API to reach the transitions' conditions. You can reach the activities that are reachable when a given activity is activated but that is all the information. It seems you will need to parse the XPDLs.

I think there should be more elegant solution to your problem - think twice.

Regards,
Monique

Fabrizio Corsetti wrote:
> That's right,
> 
> but in this way I need a different enumeration variable for every activity with outgoing conditions, and my target is to make the process creation more easy as possible, so I prefer to parse the expressions associated with an activity in order to get the list of possible values and display only the transitions description, in this way the human user should view a comprehensible description instead of an int value.
> 
> saying that, is there an api to get the transitions associated with an activity reached in a running process or I  need to parse the process's xpdl?
> 
> 
> 
> ________________________________ 
> Ing. Fabrizio Corsetti                                                      
> Gruppo InIT
> tel   +39 075 5997279
> fax   +39 075 393486
> web   www.gruppoinit.it
> e.mail   [email protected]
> 
> -----Messaggio originale-----
> Da: David Delbecq [mailto:[email protected]] 
> Inviato: lunedì 26 settembre 2005 14.44
> A: [email protected]
> Oggetto: Re: R: [shark] how can i do to get activity's transitions?
> 
> Hi Farbizio,
> I think it's better to list possible value on workflow variable declaration
> instead of trying some guessing from the Condition String.
> If success cab be either 1 or 0, then i suggested you use a boolean type.
> If the list of possible values is a short discrete list, then an enum
> can be the good thing.
> 
> 
> Fabrizio Corsetti a écrit :
> 
>> Thank you for your promptly reply,
>> In a running process, I need to get transition detail of the activities reached.
>> More detailed I need to get, in the following code, the expression "success==1" :
>>
>> <Transition From="foo_Act7" Id="foo_Tra77"  To="foo _Act28">
>>      <Condition Type="CONDITION">success==1</Condition>
>>      <Description>good</Description>
>>      <ExtendedAttributes>
>>          <ExtendedAttribute Name="RoutingType"Value="SIMPLEROUTING"/>
>>      </ExtendedAttributes>
>> </Transition>
>>
>> in this way I can visualize on the client all the possible values of the variable "success" and force the user to select only one of this.
>>
>>
>> ________________________________ 
>> Ing. Fabrizio Corsetti                                                      
>> Gruppo InIT
>> tel   +39 075 5997279
>> fax   +39 075 393486
>> web   www.gruppoinit.it
>> e.mail   [email protected]
>>
>> -----Messaggio originale-----
>> Da: Monique Maker [mailto:[email protected]] 
>> Inviato: lunedì 26 settembre 2005 13.13
>> A: [email protected]
>> Oggetto: Re: [shark] how can i do to get activity's transitions?
>>
>> Hello Fabrizio,
>>
>> The solution highly depends where and when you want to get the activity transitions:
>>  - In design- or in run-time
>>  - If in run-time, before the process is started, or after the activity is reached
>>
>> Please be more specific.
>>
>> Regards,
>> Monique
>>
>> P.S. By the way, all these possibilities are already discussed in this list.
>>
>> [email protected] wrote:
>>  
>>
>>> hi all,
>>>
>>> i'm new to shark and i'm trying to taming it!
>>> i need to obtain the transitions associated with an activity, but looking shark's api, i have not found anything.
>>>
>>> any suggestion?
>>>
>>> thanks in advance.
>>>
>>>    
>>>
>>
>>  
>>
>> ------------------------------------------------------------------------
>>
>>
>> --
>> You receive this message as a subscriber of the [email protected] mailing list.
>> To unsubscribe: mailto:[email protected]
>> For general help: mailto:[email protected]?subject=help
>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>  
>>
> 
> 
>
message-footer.txt (text/plain, 271 B)
--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws