cancel
Showing results for 
Search instead for 
Did you mean: 

Explorer-JPA, get 'Unknown property used in expression' via REST

aspirinxp
Champ in-the-making
Champ in-the-making
Hi

By the help from this forum, I merged JPA module with existed explorer code, now it works fine when I start new process instance via explorer web page, JPA entity is created and persisted in database. However, when I tried to create same process instance via REST I got "Unknown property used in expression", but if I just use GET to retrieve task list or deployed process list via REST it works fine.

Did I miss something in the REST module? I just put the rest.war with my JPA-explorer in the same server and merely changed the db.property file of REST module to make it pointing to same db that explorer uses.

Thanks
3 REPLIES 3

aspirinxp
Champ in-the-making
Champ in-the-making
Here is the start event listener of my bpmn file, the unknown property error points to this start expression.
<code>
<extensionElements>
      <activiti:executionListener event="start" expression="${execution.setVariable('safetyCheck', SafetyCheckService.newSafetyCheck(execution))}">
      </activiti:executionListener>
</extensionElements>
</code>

jbarrez
Star Contributor
Star Contributor
What exact exception do you get? Which property can't it find?

aspirinxp
Champ in-the-making
Champ in-the-making
Thanks for your reply, I already fixed the problem, I slightly changed the original explorer code to make it processes and responses REST request directly instead of relay on REST module. Then I could tracked the exception and saw more info about the error, it turned out I made a silly mistake about format convert. Anyway, thx.

Cheers