Vasyl Matyashovskyy wrote:
> Hi Thomas!
> I want propose some to each new release.
> For me in majority the workflows consist from several key questions. 
> So, after changes will be great to get answer for key questions.
> I think that other participants added some their key questions and we get
> some like control checklist for verification new releases in key points and
> good manual about changes.
> 
> So my several questions:
> We have MAIN, SUB1 and SUB2 workflows
> 
>  - How get access to MAIN dataset  from SUB1 ("data" and "edge condition")

By using the path to the databit. Was broken in the verifier, but should
be fixed in svn for the next version now.

>  - How to send "event" from SUB1 to MAIN (for satisfy "Edge" condition)

You can use the sendevent action for this:
<sendevent name="signal_jobtracker_cancel" eventtype="JOBTRACKER_CANCELED">
<targetwfs>
$wf.getParentwfid()
</targetwfs>            
</sendevent>

>  - How gets to events in SUB1 from SUB2  (for satisfy "Edge" condition)

I don't see the need for a workflow that has exactly 2 subworkflows, why
don't you include the subworkflows into the main workflow?
It would also be possible to use the sendevent action for this, but
you need a way to know the workflowid of SUB2 in SUB1.
The way I use subworkflows normally is, that there is a parent workflow
which attaches an unlimited amount of subworkflows of one type, for
example my workflow "Job-Tracker" attaches the subworkflows "Applicant"

>  - Can I run SUB1 from MAIN with some parameters?

Yes, if the subworkflow has a databit with the same name as its
parent, the values will get copied. For example MAIN has
mainset.databitXY and SUB1 has sub1set.databitXY, the content will get
copied.
Another possibility is to start the subworkflow from a scriptaction:

<scriptaction name="useradd">
<description>bla</description>
<script>
#set ($subwf = $scriptapi.createSubWorkflow("subname", "subversion"))
$subwf.getDatabit("subset.answer").setValue("42")
</script>
</scriptaction>


>  - How to operate with Variables in Node? (mathematical operations +-)

What exactly do you want to calculate? Scriptactions allow mathematical
operations with databit values.

Greetings

-- 
Thomas Schmidt (tschmidt [at] suse.de)
SUSE Linux Products GmbH :: Research & Development :: Internal Tools
"Computers are useless. They can only give you answers.", Pablo Picasso

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/swamp-devel
http://swamp.sf.net 

Reply via email to