Forum Discussion
- JackLacavaHonored Contributor
If you want to send back an error message, you could wrap your sequence into an Extender rule; on failure, you throw the exception with a message and *I think* this will be returned by the API call. The job will appear as failed though.
If instead you want to return some extra info on success, I think you will need to implement a polling system. One way to do that would be to build a Data Adapter that launches a Dashboard DataSet rule, which will return the necessary info; and then execute that from the endpoint api/DataProvider/GetAdoDataSetForAdapter . This rule will have to be smart enough to figure out when the job is completed (by querying either Task Activity, or Error Log, or the data itself), and return some "in progress" data if it's not. The client will just keep polling GetAdoDataSetForAdapter as long as necessary.
- IBKNew Contributor III
Thank You very much. So the external system will make 2 calls to the OneStream API.
One using the Datamanagement Step as it is doing right now and the other will be api/DataProvider/GetAdoDataSetForAdapter to get the extended result from OneStream application.
Am I summarizing it correctly?
Thank You,
Indu
- JackLacavaHonored Contributor
yeah
Related Content
- 3 months ago