0 Replies Latest reply on Oct 12, 2005 6:40 AM by ayca

    CDATA passed to subprocess

    ayca Newbie

      Hi,

      I have a sub and a super process . The CDATA I provide in the definition of process-state in super process, is not written to the database correctly.

      For instance for:

      <process-state name="sub process state">
       <delegation class="org.jbpm.delegation.processinvocation.DefaultProcessInvocationHandler">
       <![CDATA[
       <default-process-handler-configuration>
       <actor-id>the super actor</actor-id>
       <sub-process-name>the sub process</sub-process-name>
       <start-mapping>
       <super-variable>a</super-variable>
       <sub-variable>aa</sub-variable>
       </start-mapping>
       <start-mapping>
       <super-variable>b</super-variable>
       <sub-variable>bb</sub-variable>
       </start-mapping>
       <end-mapping>
       <sub-variable>sum</sub-variable>
       <super-variable>s</super-variable>
       </end-mapping>
       </default-process-handler-configuration>
       ]]>
       </delegation>
       <transition to="end" />
       </process-state>

      after the deployment of the superprocess in the database, when I check the database I see that only

      <default-process-handler-configuration>
       <actor-id>the super actor</actor-id>
       <sub-process-name>the sub process</sub-process-name>
       <start-mapping>
       <super-variable>a</super-variable>
       <sub-variable>aa</sub-var

      part of it under configuration column of JBPM_DELEGATION . I checked the database and saw that configuration column of JBPM_DELEGATION table is already varchar 4000, which should have been long enough to take what I needed to insert. But it somehow does not insert all what I have provided inside the CDATA.

      I could not figure out the reason. Could you?

      Thanks in advance.

      PS: I use Sybase by the way.