Expand my Community achievements bar.

Adobe Summit is live! Tune in to take part in the premier digital experience event.
SOLVED

How to expose an AEM Forms OSGi workflow as REST/SOAP endpoint

Avatar

Level 2

Hi All,

 

In AEM Forms JEE workbench after creating a workflow we could expose it as a REST/SOAP endpoint. How can we do the same in OSGi workflow?

 

Thanks,

Bibhu. 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @BibhuNayak,

Yes, you can start a new workflow instance via HTTP request, POST method.


Method:
POST

Endpoint:
http://localhost:4502/etc/workflow/instances

 

Creates a new workflow instance. The parameters are:
model: the ID (URI) of the respective workflow model
payloadType: containing the type of the payload (for example JCR_PATH or URL).
The payload is sent as parameter payload. A 201 (CREATED) response is sent back with a location header containing the URL of the new workflow instance resource.

 

Documentation can be found here, https://experienceleague.adobe.com/docs/experience-manager-65/developing/extending-aem/extending-wor...

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @BibhuNayak,

Yes, you can start a new workflow instance via HTTP request, POST method.


Method:
POST

Endpoint:
http://localhost:4502/etc/workflow/instances

 

Creates a new workflow instance. The parameters are:
model: the ID (URI) of the respective workflow model
payloadType: containing the type of the payload (for example JCR_PATH or URL).
The payload is sent as parameter payload. A 201 (CREATED) response is sent back with a location header containing the URL of the new workflow instance resource.

 

Documentation can be found here, https://experienceleague.adobe.com/docs/experience-manager-65/developing/extending-aem/extending-wor...