R: R: R: how can i do to get activity's transitions?
"Fabrizio Corsetti" <[email protected]> Mon, 26 Sep 2005 15:52:08 +0200
| Newsgroups | gmane.comp.java.enhydra.shark |
|---|---|
| Message-ID | <CBAD69EB7E8DB24C85711C701181D9879BA8AA@parsifal.init.gruppoinit.it> |
Thanks a lot for your reply, using the extended attributes is the nearest solution to my needs. ________________________________ 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 15.44 A: [email protected] Oggetto: Re: R: R: [shark] how can i do to get activity's transitions? For most conditions, a Boolean or a 3 values enumeration is enough (the classical 'accepted?' or 'document status' variable). Also don't forget if you allow success to take values -1, 0 and 1 (considering you have 2 conditions + a fallback transition), you need some way to tell the user what those values mean. A more elegant solution if you realy need such behaviour is to add extra informations to the action using extended attributes eg, add the following extended attributes to your action: RESULT_VALUE_success="1, Operation is successful" RESULT_VALUE_success=0", Operation is unsuccessful" You can then use the adminmisc interface to query extended attributes of current action and show options to user (please note, this is currently how the shark swing client determines you have to update/read some variables) Fabrizio Corsetti a écrit : >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 >> >> >> >> > > > > > >------------------------------------------------------------------------ > > >-- >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