cancel
Showing results for 
Search instead for 
Did you mean: 

checking for null

boneill
Star Contributor
Star Contributor
Hi All,

I have what I consider to be a very simple workflow.  It has a task called validSignOff which allows a user to enter metadata for an Approvers name.   From there there is an Approve or Reject path.  If the user selects the approve path  a decision node checks if the metadate fields have been filled in.

<decision name="signoffreceived">
      <transition to="endreview">
         <condition>#{validwf_validapprover != 0}</condition>
      </transition>
      <transition to="validsignoff" name="incompletesignoff"></transition>
   </decision>


However, the code validwf_validid.length != 0 returns true even if I have not put any value into the matadata field via the task.  So how do I check if the user has entered a value ?
(note have also tried validwf_validapprover != null).

Regards

Brian
1 REPLY 1

sethatrothbury
Champ in-the-making
Champ in-the-making
I've found that using   property != void     will work for most cases.

There is an example in your OOB "Review & Approve" Workflow for the DM side on lines 22-23 (classpath://WEB-INF/classes/alfresco/workflow/review_processdefinition.xml)