As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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.
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
Below is the message.
org.activiti.engine.ActivitiException: Unknown property used in expression: ${status=="rejected"}
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.
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>
could you please attach your activiti definition here?
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">
No luck,still getting same exception.
"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 validate your process definition file ? And one more thing can you please try to print value of status ?
I think Kayne is right. Probably status value is null and it is not able to find out any path through exclusive gateway.
I will suggest to try with default flow once so that you can conclude that it is having issue with value of status variable.
Getting Activiti explorer and Alfresco playing on the same data is tricky. It is very easy to seriously mess up unless you have a solid understanding and know exactly where and how to tweak.