Start Process Instance via REST call

cancel
Showing results for 
Search instead for 
Did you mean: 
amitavam123
Member II

Start Process Instance via REST call

Hello,

I am very new to Alfresco Process Services and hence request your help. My scenario is this:

 I have a booking process. The process will be instantiated when an external publisher makes a REST invocation by passing 3 parameters. 

How may I implement this requirement?

Thanks.

3 Replies
mdtabrezmca
Established Member II

Re: Start Process Instance via REST call

Hi,

    You can use public rest api provided by APS. to start a process instance from any REST client you can use this API

http://{yourdomain}/activiti-app/api/enterprise/process-instances

for more details about apis. please visit this link Using the REST API Explorer | Alfresco Documentation(List of public apis).

amitavam123
Member II

Re: Start Process Instance via REST call

Dear Tabrez,

Thank you for your response. My problem is slightly different. 

I have a process where I have used a Start Message Event(SME). The SME is associated with a Message Definition. In the message definition, I can pass only the message name & ID.

I am confused now as to how to wrap this process model with a REST endpoint, having 3 input parameters and how does that connect to the message definition.

Any tutorial/sample in this regard will be very helpful.

Thanks.

mdtabrezmca
Established Member II

Re: Start Process Instance via REST call

Activiti User Guide  this would be helpful but here they are using signal event.