Linking Alfresco workflow with external framework

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2015 09:43 AM
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).
Labels:
- Labels:
-
Archive
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-02-2015 08:37 AM
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.
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.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-02-2015 08:37 AM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-02-2015 12:33 PM
The activiti workflow built into alfresco can be an "external framework" itself or call other "external frameworks."

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2015 09:41 AM
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
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2015 01:56 AM
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
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
