Hi everyone,
I am unable to find the transient meaning, what is the purpose and why we r using it, and why not the other approach? can guys help me with this?
Discussion posts and replies are publicly visible
mamathak0001 said:the transient meaning
Could you clarify what you mean by this?
sorry, we have a transient annotation that we used in the XSD
Hi mamathak0001,
Transient annotation in an XSD makes the field to be ignored when verifying it against the datastore. It is most commonly used to store the data temporarily in a process.
An example use case is this thread that was initiated by you -https://community.appian.com/discussions/f/process/21429/transient-value-is-not-getting-saved-after-the-process-model-is-debugged. Here you have used the transient value to temporarily store the index reference until writing the actual data to the database.
mamathak0001 said:why not the other approach?
- Could you please throw some light into what you mean by the other approach?
Note: If a transient value is used in a CDT, then while querying from that particular table, we should be using selection columns in the query entity to avoid an error.
community.appian.com/.../kb-1404-queryentity-fails-when-an-xsd-has-a-field-marked-as-transient
I mean that is there in any other approach instead of this
As far as I know, transient values are used only when there is a solid use case to have a temporary field inside a CDT which cannot be achieved by having other variables (or) temporary data type/dictionary.
My thoughts - The alternative approach entirely depends on the use case and the process design.
Expecting other community members insights as well.