cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti In Action Listing 1.4 Compiles bu Explorer Process Fails

rpolunsky
Champ in-the-making
Champ in-the-making
I am using Activiti 5.10 and compiled and ran the BookOrderTest jUnit from Activiti in Action.  The jUnit ran with no errors.
However when I went into Activiti Explorer, I see "Order book" listed in Processes but no tasks waiting for kermit.
I tried to manually Start Process in the Explorer, and got the following error:

com.vaadin.event.ListenerMethod$MethodException
Cause: org.activiti.engine.ActivitiException: problem evaluating script: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: isbn for class: Script5
   at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510)

Any suggestions?
2 REPLIES 2

rpolunsky
Champ in-the-making
Champ in-the-making
Apparently the cause is in the script task:
    <scriptTask id="scripttask1" name="Validate order" scriptFormat="groovy" activiti:autoStoreVariables="true">
      <script>
        outSmiley Tonguerintln "validating order for isbn " + isbn;        
      </script>
    </scriptTask>

If I read the error message correctly, the java code below is not putting the ISBN value where it can be picked up:

    variableMap.put("isbn", "123456");
    identityService.setAuthenticatedUserId("kermit");
    ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("bookorder", variableMap);               

Can anyone shed light on this?

jbarrez
Star Contributor
Star Contributor
How are you providing the variableMap in Explorer?
Do you have a form? Without user input, of course the isbn variable will be null in Explorer.