Vasyl Matyashovskyy schrieb:
> Hi Thomas!
> 
> I've take version 305 from SVN Repository but it not compiled.
> 
> Would you please fix mistakes in source code
> 
> Greetings
> 
> Vasyl 

Hi, to use the feature in 1.5.1 the method should look like:

         public void sendEvent(String eventString, int targetwfid) 
throws Exception {
             EventManager.handleWorkflowEvent(new Event(eventString, 
wfid, targetwfid), uname, new ArrayList());
         }

But I won't backport every change now, please use the complete svn 
version or
wait for the next release.

Greetings


> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Thomas
> Schmidt
> Sent: Tuesday, August 29, 2006 5:59 PM
> To: swamp-devel@lists.sourceforge.net
> Subject: Re: [swamp-devel] access to Main DATASET from subworkflows
> 
> Vasyl Matyashovskyy schrieb:
>> Hi Thomas!
>>
>> I've changed that you said, but this give other difficulty:
>>  Edge condition for Sub1 after satisfaction(I change databit value in
>> scriptaction) become in Green color but not allow cross to next node
>>  So what means if: 
>>  - Conditions that are still waiting for a certain event are colored
> GREEN?
>> If I try manually change databit in main workflow (that used in edge
>> condition of Subworkflow) then all cross normally to next Node.
> 
> Hi Vasyl,
> the problem is that you changed the databit in a scriptaction.
> The internal mechanism of a data-condition is to listen for a special 
> event "DATA_CHANGED"
> and check the content of the watched field when that event comes in.
> This event does not get sent when changing the databit directly, it is 
> only send
> when doing a dataedit task or editing the data in the workflow.
> The good news is I just added a method that you can send this event 
> manually from the scriptaction
> with :
> 
> $scriptapi.sendEvent("DATA_CHANGED", $wf.getMasterParentWfId())
> 
> The event will get send to the parent workflow which will distribute the 
> event to all subworkflows where
> the dataconditions can react.
> The change can be seen here:
> http://svn.sourceforge.net/viewvc/swamp/trunk/src/de/suse/swamp/core/actions
> /ScriptActionTemplate.java?r1=294&r2=305
> and you can also add the code to your version.
> 
> Greetings
> 


-- 
Thomas Schmidt (tschmidt [at] suse.de)
SUSE Linux Products GmbH :: Research & Development :: Internal Tools
"Don't Panic", Douglas Adams (1952 - 11.05.2001)

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
swamp-devel mailing list
swamp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swamp-devel
http://swamp.sf.net 

Reply via email to