JBoss Community

Re: JBPM Persistence Error

created by Jason J in jBPM - View the full discussion

Hi Kris,

 

I have a workflow that should be persisted at a wait-state (safe point) that uses an intermediateCatchEvent via conditionalExpression.  When the process is reloaded, my understanding is the process instance will continue where it left off - as you mentioned. 

 

However, the workflow is designed so that a drools rule is what actually unblocks the blocking conditional wait step.

 

ex:

 

<intermediateCatchEvent id="_6" name="Wait for Document Approval" >
      <conditionalEventDefinition>
            MyDocument(status == "Approved")
      </...>
</...>

 

then in a rule defined in the same session:

 

rule X

when:

       ....

then:

       $myDocument.setStatus("Approved")

 

 

I see the rule firing, but the workflow is never advanced out of the block state.

 

Any explanation?

Reply to this message by going to Community

Start a new discussion in jBPM at Community