cancel
Showing results for 
Search instead for 
Did you mean: 

Workflows

riadhazzouz
Confirmed Champ
Confirmed Champ

Is there a way to find out if a user has started a workflow ? (java functions)
Is it possible to use behaviours ?

5 REPLIES 5

afaust
Legendary Innovator
Legendary Innovator

1) Yes. WorkflowService#getWorkflows(WorkflowInstanceQuery) is the Java method for querying for workflows, including workflows started by user X.

2) It is always possible to use behaviours - the only question is: What for? Behaviours can be used to react to changes on nodes, but they cannot be used to react to events / changes in workflows (that is what Activiti TaskListener / ExecutionListener are for).

Thanks.

And for sites, are there any functions ?
Thanks.

Do you have any examples, how to make these ExecutionListener.
Thanks.

afaust
Legendary Innovator
Legendary Innovator

Apart from readily available documentation and tutorials, like Creating Custom Advanced Workflows in Alfresco, no.