Skip to main content
Seasoned ⭐️⭐️⭐️
Jan 16, 2023 3:56 PM UTC
Solved

Cognite function chaining

Can we have function chaining feature in Cognite functions where on sucess/failure status of a function we initiate another function.

Knut Vidvei
Expert ⭐️⭐️⭐️⭐️
Jan 17, 2023 8:56 AM UTC

Hi, Ardash,

 

Thank you for the questions on Cognite Functions. This functionality allows you to deploy and run Python code on Cognite Data Fusion on a schedule or by calling the function.

The orchestration is up to the user or system integrator to orchestrate themselves based on your use case, but is not an out-of-the-box functionality in Cognite Data Fusion, as Jason says.

What type of orchestration would you need to get more value here?

 

Full documentation is located here, with https://docs.cognite.com/cdf/functions/

To call a function you use: 

call = func.call(data={"assetNo": 0})

And to get the response

call.get_response()

 

Best regards,

Knut Vidvei

4 replies

Expert ⭐️⭐️⭐️⭐️
Jan 16, 2023 5:19 PM UTC

Ardash,
No, workflow orchestration is not currently available out of the box.


Jason

Knut Vidvei
Expert ⭐️⭐️⭐️⭐️
Expert ⭐️⭐️⭐️⭐️
Jan 17, 2023 8:56 AM UTC

Hi, Ardash,

 

Thank you for the questions on Cognite Functions. This functionality allows you to deploy and run Python code on Cognite Data Fusion on a schedule or by calling the function.

The orchestration is up to the user or system integrator to orchestrate themselves based on your use case, but is not an out-of-the-box functionality in Cognite Data Fusion, as Jason says.

What type of orchestration would you need to get more value here?

 

Full documentation is located here, with https://docs.cognite.com/cdf/functions/

To call a function you use: 

call = func.call(data={"assetNo": 0})

And to get the response

call.get_response()

 

Best regards,

Knut Vidvei

Anita Hæhre
Expert ⭐️⭐️⭐️⭐️
Head of Community
Feb 24, 2023 8:27 AM UTC

Hi @Adarsh Dhiman did Knut’s reply above give you what you need? 

Anita Hæhre
Seasoned ⭐️⭐️⭐️
Mar 12, 2023 3:06 PM UTC

Hi Anita & Knut,

Thank you. Yes, the explanation is good enough.

Regards,

Adarsh