Skip to main content
July 22, 2021
Question

transient

  • July 22, 2021
  • 5 replies
  • 0 views

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?

    5 replies

    mikes0011
    Brainy
    July 22, 2021
    the transient meaning

    Could you clarify what you mean by this?

    The Expression Guru
    July 23, 2021

    sorry, we have a transient annotation that we used in the XSD 

    selvakumark
    July 23, 2021

    Hi [mention:cb55bee857194035a126a4b134ac0e8f:e9ed411860ed4f2ba0265705b8793d05],

    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. 

    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

    July 23, 2021

    I mean that is there in any other approach instead of this

    selvakumark
    July 23, 2021

    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.