cancel
Showing results for 
Search instead for 
Did you mean: 

Error: <condition> tag showing error

shivangi
Champ in-the-making
Champ in-the-making
<task-node name="authorCertify">
        <task name="mywf:authorCertify" swimlane="initiator" />
        <transition name="aftercertify" to="submitted" >
   <condition>#{mywf_checkCertify != "NotCertified"} </condition>
   </transition>
    </task-node>

showing the error as : Caused by: org.jbpm.jpdl.JpdlException: [[ERROR] line 61: cvc-complex-type.2.4.a: Invalid content was found starting with element 'condition'.

The condition checks specified for transitions are not working.

<transition name="" to="authorverification">
<condition>#{mywf_legalcertify == true  &amp;&amp;  mywf_compliancecertify == true}</condition>
</transition>

M i spcifying the condition check in a wrong manner…? Smiley Sad

All of the conditions are showing same error:
The error shown in logs is :

Caused by: org.jbpm.jpdl.JpdlException: [[ERROR] line 61: cvc-complex-type.2.4.a: Invalid content was found starting with element 'condition'. One of '{"urn:jbpm.org:jpdl-3.1":action, "urn:jbpm.org:jpdl-3.1":script, "urn:jbpm.org:jpdl-3.1":create-timer, "urn:jbpm.org:jpdl-3.1":cancel-timer, "urn:jbpm.org:jpdl-3.1":exception-handler}' is expected., [ERROR] line 266: cvc-complex-type.2.4.a: Invalid content was found starting with element 'condition'. One of '{"urn:jbpm.org:jpdl-3.1":action, "urn:jbpm.org:jpdl-3.1":script, "urn:jbpm.org:jpdl-3.1":create-timer, "urn:jbpm.org:jpdl-3.1":cancel-timer, "urn:jbpm.org:jpdl-3.1":exception-handler}' is expected., [WARNING] swimlane 'initiator' does not have an assignment]
   at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:173)
   at org.alfresco.repo.workflow.jbpm.JBPMEngine.compileProcessDefinition(JBPMEngine.java:1649)
   … 62 more
15:53:20,796 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/alfresco]] Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.alfresco.error.AlfrescoRuntimeException: Workflow deployment failed
   at org.alfresco.repo.workflow.WorkflowDeployer.deploy(WorkflowDeployer.java:243)
   ……………………………
2 REPLIES 2

kukeltje
Champ in-the-making
Champ in-the-making
You try to use jBPM 3.2 functionality while referencing a 3.1 schema (urn:jbpm.org:jpdl-3.1)

3.2: http://docs.jboss.com/jbpm/v3.2/userguide/html/jpdl.html#transition.element
3.1: http://docs.jboss.com/jbpm/v3.1/userguide/en/html/jpdl.html#transition.element

shivangi
Champ in-the-making
Champ in-the-making
Thanks
Got the solution. Changed the namespace.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.