How to compare two business variables?
I'm selecting a record from an external PostgreSQL Database, and saving the information in my BDM, however I want the BDM records not to be duplicate, I currently have two business variables, one that gets the information from my BDM and another Which receives the records from my external database, I need to compare those variables to add in my BDM only record that are not already contained in it.
How could I do that?
I have the link to my .BOS file if you can help me, I thank you.
Is this a one off batch process or as part of a fully developed process that will be used by 100's of users?
The easy way to do this is add an Index field to the BDM and make it Unique,
Then copy all records from PostgreSQL using the index field as the unique identifier. Print out any duplicates...there shouldn't be any.
The other way to do it is to create a CSV dump from PostgreSQL and them import the dump to the BDM again you could use the principal of unique field.
HOWEVER, do note that if this data is to be used by other systems you might want to keep the data in PostgreSQL and use connectors to get it.
PS: As this reply answers your question, please mark as resolved by ticking the tick mark on the left of this reply.
Thanks for the feedback. Could you give me a more detailed example? I am new to BonitaSoft and however simple it may be to do your homework I could not understand how I can access this data stored in my business variable that receives the data from my BDM.
Thank you very much for all the help.
Did you mean Process variable.
You can Refer the Process variable in your UI form using the API call
Take a look at this example
I believe once you have both Process variable and BDM variable in the UI page.