Hi, I've corrected my workflows but get error again: MAIN workflow: ... defaultdataset="sitedevelopment" ... ... <!-- Attached data of the workflow --> <dataset name="sitedevelopment" description="Main dataset"> ... <dataset name="flag" description="flags"> <databit name="site_developed" description="Flag" type="boolean"/> </dataset> ... </dataset>
SUB1 workflow: ... defaultdataset="sitedevelopment" ... ... <!-- Attached data of the workflow --> <dataset name="sub1" description="Sub1 dataset"> ... </dataset> In the SUB1 workflow I need check condition in edge: <edge to="NODE4"> <data check="regexp" field="sitedevelopment.flag.site_developed" value="true"/> </edge> But I get an error: Default dataset sitedevelopment not available! If I try to get access from <scriptaction> block to sitedevelopment.flag.site_developed databit - I get it. But if I try to access from edge condition - I failed. Where is my mistake? Greetings. Vasyl -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Schmidt Sent: Monday, August 21, 2006 5:09 PM To: swamp-devel@lists.sourceforge.net Subject: Re: [swamp-devel] access to Main DATASET from subworkflows Vasyl Matyashovskyy schrieb: > Hi Thomas! > > I have the "MAIN" workflow(here are described all dataset "sitedevelopment") > and run from it sub workflow "SUBWORKFLOW" > The name defaultdataset="sitedevelopment" are pointed in both workflows, > but I meet difficulty. I can't get access to Databit of the parent workflow > from Subworkflow. I get error message when make "Reload all templates": > > Workflow SUBWORKFLOW: > Referenced databit: sitedevelopment.flag.site_developed not available. > > Workflow MAIN: > Workflow validation passed. Hi, the subworkflow must have its own dataset referenced by defaultdataset=... to validate. The dataset of the main workflow will automatically get attached to the subworkflow when it is started (with its original name). So the subworkflow will have access to both datasets then. > > I've uses code: > > <edge to="NODE4"> > <data check="regexp" field="sitedevelopment.flag.site_developed" > value="true"/> > </edge> > > Please help to solve this appear difficulty. > > Maybe I need to point somewhere in my "SUBWORKFLOW" that this is subworkflow > of the MAIN workflow? I have some code in the development version that tells the verifier that a workflow is a subworkflow. This makes it easier to check access to the parents workflows databits. Greetings -- Thomas Schmidt (tschmidt [at] suse.de) SUSE Linux Products GmbH :: Research & Development :: Internal Tools ------------------------------------------------------------------------- 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