From do-not-reply at jboss.com Tue Feb 3 12:54:57 2009 Content-Type: multipart/mixed; boundary="===============8356348488604465136==" MIME-Version: 1.0 From: ggamietea To: jbpm-users at lists.jboss.org Subject: [jbpm-users] [JBoss jBPM] - Schema 3.2 does not have expression as an element and encond Date: Tue, 03 Feb 2009 12:54:54 -0500 Message-ID: <4228006.1233683694645.JavaMail.jboss@colo-br-02.atl.jboss.com> --===============8356348488604465136== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi all, I'm working with jaxb to create a process definition. I've generated all jp= dl beans but I've found my self into trouble when I wanted to add an expres= sion tag in side script tag. This is the processdefinition.xml that I need | | | | Definition to test case 2 where we will have one form | | | | | | | | . | . | = This is the code and output that I've in order to create the process defini= tion | ProcessDefinition pd =3D new ProcessDefinition(); | = | pd.setName("gaston"); | pd.getDescriptionOrSwimlaneOrStartState().add("asi la descripcion del p= roceso"); | = | Event startEvent =3D new Event(); | startEvent.setType("process-start"); | = | Script startScript =3D new Script(); | StringBuffer sb =3D new StringBuffer(); | sb.append("\n\t\t"); | sb.append(""); | sb.append("\n\t\t\t"); | sb.append(""); | sb.append("\n\t\t"); | sb.append(""); | sb.append("\n\t"); | = | String s =3D new String(sb); | = | startScript.getContent().add(s); | = | startEvent.getActionOrScriptOrCreateTimer().add(startScript); | = | pd.getDescriptionOrSwimlaneOrStartState().add(startEvent); | = Output | | | asi la descripcion del proceso | | | | | = First problem... It seems that script class does not have an expression tag which I could us= e so I've add it as string to its content... is this approach correct ? Second problem... As you can see I'm facing encoding problems with start and end tag symbol. = I've tried with other encodings but none of them worked. Does anyone know h= ow to solve this ? Is the CDATA tag the problem ? My main concern now is to solve the encoding issue. Thanks in advance !!! View the original post : http://www.jboss.com/index.html?module=3Dbb&op=3Dv= iewtopic&p=3D4206682#4206682 Reply to the post : http://www.jboss.com/index.html?module=3Dbb&op=3Dpostin= g&mode=3Dreply&p=3D4206682 --===============8356348488604465136==--