Skip to main content
Seasoned ⭐️⭐️⭐️
January 16, 2023
Solved

Cognite function chaining

  • January 16, 2023
  • 4 replies
  • 107 views

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

Best answer by Knut Vidvei

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 ⭐️⭐️⭐️⭐️
January 16, 2023

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


Jason

Knut Vidvei
Expert ⭐️⭐️⭐️⭐️
Expert ⭐️⭐️⭐️⭐️
January 17, 2023

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
February 24, 2023

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

Anita Hæhre
Seasoned ⭐️⭐️⭐️
March 12, 2023

Hi Anita & Knut,

Thank you. Yes, the explanation is good enough.

Regards,

Adarsh