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

Avatar

Avatar

BibhuNayak

Avatar

BibhuNayak

BibhuNayak

18-06-2020

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. 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

BrianKasingli

MVP

Avatar

BrianKasingli

MVP

BrianKasingli
MVP

08-11-2020

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...

Answers (0)