Re: issues with loading and saving workflows
"Pat Lightbody" <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.devel |
|---|---|
| Message-ID | <025101c30f35$55fd41d0$6401a8c0@moose> |
Can you open these two issues in JIRA? We'll get to them right away. -Pat ----- Original Message ----- From: "Hubert Felber" <[email protected]> To: <[email protected]> Sent: Tuesday, April 29, 2003 2:54 AM Subject: [Opensymphony-developers] issues with loading and saving workflows > Hi, > > > --Problem: Saving a workflow that contains CDATA instruction like > <condition type="beanshell"> > <arg name="script"><![CDATA[ > "Finished".equals(jn.getStep(6).getStatus()) && "Finished".equals(jn.getStep(8).getStatus()) > ]]></arg> > </condition> > > ommits the CDATA instruction > <condition type="beanshell"> > <arg name="script"> > "Finished".equals(jn.getStep(6).getStatus()) && "Finished".equals(jn.getStep(8).getStatus()) > </arg> </condition> > Loading the workflow again causes a parser exception. > > This concerns WriteXML functions from the following files in com.opensymphony.workflow.loader > ConditionDescriptor.java > FunctionDescriptor.java > RegisterDescriptor.java > ValidatorDescriptor.java > ViewDescriptor.java > > Solution: Maybe one could change the WriteXML functions > > from: > out.print("<arg name=\""); > out.print(entry.getKey()); > out.print("\">"); > out.print(entry.getValue()); > out.println("</arg>"); > > to: > out.print("<arg name=\""); > out.print(entry.getKey()); > out.print("\"><![CDATA["); > out.print(entry.getValue()); > out.println("]]></arg>"); > > I am not sure if my file list is complete and if this is a general solution. What do you think? > > > > --Problem: If a workflow is saved, the results have an additional empty attribut "id" > original: > <unconditional-result old-status="Finished" status="Underway" step="1" owner="${caller}"/> > <result old-status="Finished" split="1"> is saved as: > <unconditional-result id="" old-status="Finished" status="Underway" step="6" owner="test"/> > <result id="" old-status="Finished" split="1"> > Solution: > Modify: com.opensymphony.workflow.loader.ResultDescriptor > change line in: public ResultDescriptor(Element result) > from: id = result.getAttribute("id"); > to: if (result.hasAttribute("id")) { > id = result.getAttribute("id"); > } > > > --Problem: The due-date is missing in the workflow.dtd > > Regards > Hubert > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Opensymphony-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/opensymphony-developers ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf