Solved

Cognite function chaining

  • 16 January 2023
  • 4 replies
  • 71 views

Badge +1

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

icon

Best answer by Knut Vidvei 17 January 2023, 09:56

View original

4 replies

Userlevel 4
Badge

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


Jason

Userlevel 3
Badge

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

Userlevel 6
Badge

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

Badge +1

Hi Anita & Knut,

Thank you. Yes, the explanation is good enough.

Regards,

Adarsh

Reply