cancel
Showing results for 
Search instead for 
Did you mean: 

Linking Alfresco workflow with external framework

tumelo
Champ in-the-making
Champ in-the-making


Is in possible to implement such a feature in Alfresco?

Let's say I have some workflow in alfresco and an external framework.
The workflow has two user tasks: one is to input some data and the other one is to approve a report, generated on an external framework.

So the logic is something like this:

1) User inputs some data on step one (first task) and presses "next"
2) Some script (web service or whatever) tells the remote system to execute a job with the parameters that were put in on step one
3) When the job finishes on the external system - it sends a message to alfresco and the workflow can continue to the next step
4) On the second step different user checks if the report is correct and approves it (or not).
5 REPLIES 5

rahulmackdani
Champ in-the-making
Champ in-the-making
Hi Tumelo



You can create a Alfresco Webscript which would be exposed via some REST URL.The webscript would move the workflow to next step.You can use following method in WorkflowService to end task via code.

    public WorkflowTask endTask(String taskId, String transition)

You can add code to call this webscript in the external job so that it triggers end of the task.

rahulmackdani
Champ in-the-making
Champ in-the-making
Hi Tumelo



You can create a Alfresco Webscript which would be exposed via some REST URL.The webscript would move the workflow to next step.You can use following method in WorkflowService to end task via code.

    public WorkflowTask endTask(String taskId, String transition)

You can add code to call this webscript in the external job so that it triggers end of the task.

mrogers
Star Contributor
Star Contributor
The activiti workflow built into alfresco can be an "external framework" itself or call other "external frameworks."

tumelo
Champ in-the-making
Champ in-the-making
Hi guys

Thank you for the response, however am still familiarizing my self with alfresco and unfortunately my task is the problem I posted above, could you guys point me to examples add the web script and work with the specific workflow.

Thank you

rahulmackdani
Champ in-the-making
Champ in-the-making
Hi

There are some OOTB webscripts which can be used to fetch tasks information.Refer following URL

http://docs.alfresco.com/4.0/references/RESTful-WorkflowTask-instancesGet.html

Regards