created workflow using activity explorer and deployed in Alfresco Community

cancel
Showing results for 
Search instead for 
Did you mean: 
mrk_rams
Active Member

created workflow using activity explorer and deployed in Alfresco Community

I have created workflow using activity explorer and deployed in Alfresco Community, when I start workflow it is giving org.activiti.engine.ActivitiException: Unknown property used in expression,but it's working fine in actviti-explorer.

12 Replies
Highlighted
kaynezhang
Intermediate

Re: created workflow using activity explorer and deployed in Alfresco Community

It seems there is something wrong with your activiti definition .
Please check the exception stack trace, there should be a detail message telling you what property is unknown

mrk_rams
Active Member

Re: created workflow using activity explorer and deployed in Alfresco Community

Below is the message.

org.activiti.engine.ActivitiException: Unknown property used in expression: ${status=="rejected"}

kaynezhang
Intermediate

Re: created workflow using activity explorer and deployed in Alfresco Community

It seems status is unknown,could you please attach your activiti definition here ?

mrk_rams
Active Member

Re: created workflow using activity explorer and deployed in Alfresco Community

Hi,

I have attached the file.

I have created and downloaded the bpmn file from avtiviti-explorer and delpoyed in alfresco community.Please let me know.

kaynezhang
Intermediate

Re: created workflow using activity explorer and deployed in Alfresco Community


You can try to add following code under extensionElements sub element of managerapproval to your activiti definition
<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>
execution.setVariable('status', task.getVariable('status'));
</activiti:string>
</activiti:field>
</activiti:taskListener>

mrk_rams
Active Member

Re: created workflow using activity explorer and deployed in Alfresco Community

Hi,

Thanks,now the exception is gone.But it is giving one more exception saying "org.activiti.engine.ActivitiException: No outgoing sequence flow of the exclusive gateway 'sid-EA621276-097A-47E9-8B70-8EF3C218150B' could be selected for continuing the process".Can you please advice on this.

kaynezhang
Intermediate

Re: created workflow using activity explorer and deployed in Alfresco Community

could you please attach your activiti definition here?

mrk_rams
Active Member

Re: created workflow using activity explorer and deployed in Alfresco Community

I have attached the file.

kaynezhang
Intermediate

Re: created workflow using activity explorer and deployed in Alfresco Community

It seems the status value is null and the gateway is not able to choose the correct path.
You can try to bind status formProperty to status variable like this

<activiti:formProperty id="status" name="Status" type="enum" variable="status" readable="true" writable="true">