Workflows

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
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
Highlighted
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).

Highlighted
Active Member

Re: Workflows

Thanks.

Highlighted
Active Member

Re: Workflows

And for sites, are there any functions ?
Thanks.

Highlighted
Active Member

Re: Workflows

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

Highlighted
Master

Re: Workflows

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