Hi,Can anyone tell the difference between Write to Data Store Entity Smart Service and a!writeToDataStoreEntity() function?? I am asking in the context of place of usage. As best practices, what are the specific places we can use the above mentioned? And is there a way to catch the error occuring while writing to DB using Write to Data store entity smart service???Thanks in advance
Discussion posts and replies are publicly visible
The smart service is used in a process model, where you find the smart services on the palette to drag onto your model. The function is used in an interface or a webAPI. You can check the documentation for any smart service regarding the errors provided, whether an error occurred and the specific error text.
I cant find any error parameter for Write to Data Store Entity smart service. Is there any way to configure that smart service to catch errors occuring while storing in DB?? Is there any plugin related to that???
Write to Data Store Entity Smart Service is used in Process model to write the data in DB whereas a!writeToDataStoreEntity() function is used in Interface to directly send the data from the interface to the DB, also if you want to check errors in Write to Datastore entity Smart services you can check it in Process details in that Errors, You can only see this when you execute your Process model
The problem is that if error occures, the flow doesnt continue further. I want the flow to continue even if there is error and based on success or error, I want to divert the flow and send appropriate message. Is there any plugin related to this requirement with success and error parameters for write to data store entity smart service?
You can use XOR gate Flow if there is an error you can send it to one node and if there is Success you can send it to another node for example look at this image, this is a sample image configure according to your needs
use a condition inside the XOR Gate to send the flow to appropriate node
No, no. The XOR node is the next part. That configuration will be simple.The actual problem is if there is any error in that smart service it wont move further. So its not actually possible to do that. Only on success scenario, the flow will move on.
the flow will not continue as you have an error in your smart service there is no plugin for it you need to fix the error in order to continue the flow
Thanks for your info. Need to find an alternative approach.