Workflows

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

Workflows

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

5 Replies
afaust
Master

Re: Workflows

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).

riadhazzouz
Active Member

Re: Workflows

Thanks.

riadhazzouz
Active Member

Re: Workflows

And for sites, are there any functions ?
Thanks.

riadhazzouz
Active Member

Re: Workflows

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

afaust
Master

Re: Workflows

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