Hi Thomas, I will be very appreciating for your help to find mistake. I put there copy of two workflows "Main" and "sub1" please find it bellow:
======================================================================== MAIN WORKFLOW ======================================================================== <?xml version="1.0" standalone="no" ?> <!DOCTYPE workflow SYSTEM "../../../dtds/workflow.dtd"> <workflow name="main" version="0.1" defaultdataset="maindataset" leastSWAMPVersion="1.4"> <!--MAIN WORKFLOW____________________________ --> <metadata> <templatedescription>Main Workflow</templatedescription> <description>BOX tunning</description> <roles> <role name="owner" restricted="false"> <roledatabit>maindataset.owner</roledatabit> </role> <role name="admin" restricted="false"> </role> <role name="starter" restricted="false"> </role> <role name="user" restricted="false"> </role> </roles> </metadata> <!-- NODE0 START ====================================================--> <node type="start" name="start"> <description>Startnode</description> <startsubworkflow name="sub" subname="sub1" subversion="0.1"> <description>Starting Subworkflow</description> </startsubworkflow> <edge to="node1" event="none"/> </node> <!-- NODE1 ==============================================================--> <node name="node1"> <description>Tunning</description> <scriptaction name="Scripta1"> <description>Flag</description> <script> $wf.getDatabit("maindataset.flag_tmp").setValue("true") </script> </scriptaction> <!-- manual task --> <manualtask name="domain" restricted="false" eventtype="domain_tune"> <description>Domain Tunning.</description> </manualtask> <!-- edge to --> <edge to="end" event="domain_tune"> <data check="regexp" field="maindataset.flag_tmp" value="true"/> </edge> </node> <!-- NODE4 END ============================================================== --> <node type="end" name="end"> <description>Endnode</description> </node> <!-- attached data of the workflow --> <dataset name="maindataset" description="main dataset" state="read-write"> <databit name="flag_tmp" description="Flag in World" type="boolean"/> <databit name="flag_tmp2" description="Flag in World2" type="boolean"/> <databit name="owner" description="owner" type="person"/> </dataset> </workflow> ======================================================================== ======================================================================== ======================================================================== SUB1 WORKFLOW ======================================================================== <?xml version="1.0" standalone="no" ?> <!DOCTYPE workflow SYSTEM "../../../dtds/workflow.dtd"> <workflow name="sub1" version="0.1" defaultdataset="sub1dataset" leastSWAMPVersion="1.4"> <!--SUB1 WORKFLOW___________________________ --> <metadata> <templatedescription>Subprocess 1</templatedescription> <description>subprocess</description> <roles> <role name="owner" restricted="false"> <roledatabit>sub1dataset.owner</roledatabit> </role> <role name="admin" restricted="false"> </role> <role name="starter" restricted="false"> </role> <role name="user" restricted="false"> </role> </roles> </metadata> <!-- NODE0 START================================================--> <node type="start" name="start"> <description>Startnode</description> <edge to="node_sub" event="none"> <data check="regexp" field="maindataset.flag_tmp" value="true"/> </edge> </node> <!-- NODE1 =====================================================--> <node name="node_sub"> <description>Tunning_Sub</description> <scriptaction name="Scripta"> <description>Flag</description> <script> $wf.getDatabit("maindataset.flag_tmp2").setValue("true") </script> </scriptaction> <!-- manual task --> <manualtask name="domain2" restricted="false" eventtype="domain_tune2"> <description>Domain Tunning2 in Sub.</description> </manualtask> <!-- edge to --> <edge to="end" event="domain_tune2"></edge> </node> <!-- NODE4 END ================================================ --> <node type="end" name="end"> <description>Endnode</description> </node> <!-- attached data of the workflow --> <dataset name="sub1dataset" description="main dataset" state="read-write"> <databit name="owner" description="owner" type="person"/> </dataset> </workflow> ======================================================================== ======================================================================== I still getting parsing error - Referenced databit: system.maindataset.flag_tmp not available Greetings, Vasyl -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Schmidt Sent: Wednesday, August 23, 2006 5:48 PM To: swamp-devel@lists.sourceforge.net Subject: Re: [swamp-devel] access to Main DATASET from subworkflows Vasyl Matyashovskyy schrieb: > Hi Thomas, > > Would you please show some example with access to dataset of main workflow > from edge condition in subworkflow. > > Because any changes that involved into workflow not solve this problem - I > can't get access to maindataset from subworkflow :( > > Again and again I get error: > Referenced databit not available. Hi, from what you posted in your mail it should be working, and we have workflows running that do it the same way. Maybe you discovered a bug, could you please send me a minimal workflow definition that does not work, and I will try to fix it. Greetings -- Thomas Schmidt (tschmidt [at] suse.de) SUSE Linux Products GmbH :: Research & Development :: Internal Tools "memory management can be a bitch" (linux/kernel/fork.c:11) ------------------------------------------------------------------------- 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