How to expose an AEM Forms OSGi workflow as REST/SOAP endpoint | Community
Skip to main content
Level 2
June 18, 2020
Solved

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

  • June 18, 2020
  • 1 reply
  • 1305 views

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. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by BrianKasingli

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-workflows/workflows-program-interaction.html?lang=en#managing-workflow-instances

1 reply

BrianKasingli
Community Advisor and Adobe Champion
BrianKasingliCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
November 8, 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-workflows/workflows-program-interaction.html?lang=en#managing-workflow-instances