cancel
Showing results for 
Search instead for 
Did you mean: 

created workflow using activity explorer and deployed in Alfresco Community

mrk_rams
Champ on-the-rise
Champ on-the-rise

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 12

kaynezhang
World-Class Innovator
World-Class Innovator

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
Champ on-the-rise
Champ on-the-rise

Below is the message.

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

kaynezhang
World-Class Innovator
World-Class Innovator

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

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
World-Class Innovator
World-Class Innovator


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>

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
World-Class Innovator
World-Class Innovator

could you please attach your activiti definition here?

I have attached the file.

kaynezhang
World-Class Innovator
World-Class Innovator

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">