I'm working on an assembly package and I'm dealing with some problems due to some customizations, in fact I tried to modify the replacing object of the Account, in particular the 'AccountInserting' event.
After this operations I noticed that the source code of the object remains empty and that the changes don't work, while doing the same operations in a "simple" package the source code is filled in and the changes work.
Do you have any idea why this is happening and how to fix this issue?
Let me know.
It is not possible to implement object business logic via event sub-processes in the Object Designer. Use EntityEventListener to work with the event model. The EntityEventListener event set does not entirely match the event model in Creatio IDE. Learn more about the Entity event layer: Objects business logic.
And enabling the event on the object is needed for the sub-process in the object designer only. Please use the EntityEventListener instead.
It is not possible to implement object business logic via event sub-processes in the Object Designer. Use EntityEventListener to work with the event model. The EntityEventListener event set does not entirely match the event model in Creatio IDE. Learn more about the Entity event layer: Objects business logic.
And enabling the event on the object is needed for the sub-process in the object designer only. Please use the EntityEventListener instead.
Hi Oscar,
I actually enabled the event on the object just to use it (as you said) in the sub-process in the object designer, but the customizations that I made there didn't work in an assembly package, instead worked in a simple one.
Let me know if I have made myself clear or if you need other explanations.
As you said, you've enabled the event on the object to use in the sub-process in this object and did it in the assembly package. As stated on the Academy - it's impossible to use sub-processes on the object in the assembly package (and as a result the source code for the object won't be updated in case you are designing this sub-process in the assembly package). Can you please clarify what exactly is expected here?
The issue is that the process will execute asynchronously. The only way to get the value back from the process is, instead of using it as an output param, to send it as a message using a script task in the process that you will retrieve with client-side code on the page.
Basically, at the end of your process, you'll add a script task. In that script task you'll get the param value, then send it as a message (as outlined in the article). Then, in your page code, you'll listen for that message, check to make sure it's the message sent from your process, and then read the value and do whatever is needed with it.
There was no possibility to edit the source code of the object ever in the Creatio app using the object "Source code" option. The window with the source code is always opened in the read-only mode. The only thing that you can edit and save is the content of the "Modification package" tab of the object metadata.
There was no possibility to edit the source code of the object ever in the Creatio app using the object "Source code" option. The window with the source code is always opened in the read-only mode. The only thing that you can edit and save is the content of the "Modification package" tab of the object metadata.