Process Completion info via API Calls
We are using Databricks for Anaplan API and Airflow for job execution.
Context : Process 2 (Spoke) is dependent on Process 1 (Hub). This means Process 2 should only start when Process 1 is completed and both should not run parallelly.
Issue : Right now the backend only tells you whether the process was successfully triggered or not… it doesn’t check whether the process actually completed. This leads to Process 2 and Process 1 running simultaneously.
Question : . Is there any way to capture Process 1 completion info in backend via api calls?
Best Answer
-
Hi,
You can achieve that by checking the status of the process triggered before starting the new one.
Basically, after executing your POST request that starts your process, check the progress of your execution by using GET request with the task ID Anaplan sends you after a successful POST.
The GET request is like this:https://api.anaplan.com/2/0/workspaces/{{workspaceID}}/models/{{modelID}}/processes/112000000031/tasks/{taskID}}
Usually we do a loop with those GET requests until you get a status similar to this:You then can start the second process.
Christophe K
1
Answers
-
Hi Christophe,
Thank you for your reply. I found this on the Anaplan Integration API Guide and Reference · Apiary
Is this what you're talking about ?
Thanks,
Akshay
0 -
Yes indeed!Just be sure you are using Process information (what you've shown is for imports). There are no real difference though.
1