Skip to Content
0
Jul 28, 2023 at 01:28 PM

Utilizing the Business Accelerator Hub with SBPA: Output Format

82 Views

Hi Team,

Currently working on a SBPA project. I've set the project up correctly and want to receive output via /workflow/rest/v1/workflow-instances/' + WorkflowID + '/context' endpoint. How do I standardize the name of the json response. Currently, the output of my response is called "automation_masterAutomation_2". I'd like to standardize the output of the process to be something like setOutput. I'm trying to standardize output b/c I'm running multiple automations which are hitting a single point for storage. Please advise.

Current result of /context endpoint:

{'startEvent': {'definitionid': '', 'case_url': '', 'started_by': '', 'component': '', 'variant': 'Child2', 'payload': ''}, 'automation_masterAutomation_2': {'report': 'https://dev.itsm.services.sap/api/now/attachment/f7199b681bccf510e8b1caaf7b4bcbf6/file', 'log': 'Child2 has been accessed! ', 'error': '"Potential Error"', 'nextSteps': '"Future Functionality"'}}

Ideal result of /context endpoint:

{'startEvent': {'definitionid': '', 'case_url': '', 'started_by': '', 'component': '', 'variant': 'Child2', 'payload': ''}, 'setOutput': {'report': 'https://dev.itsm.services.sap/api/now/attachment/f7199b681bccf510e8b1caaf7b4bcbf6/file', 'log': 'Child2 has been accessed! ', 'error': '"Potential Error"', 'nextSteps': '"Future Functionality"'}}