hi All, is it possible to directly change process variables in In process-

hi All,
is it possible to directly change process variables in In process-backed record view ?

thanks in advance.

OriginalPostID-200286

OriginalPostID-200286

  Discussion posts and replies are publicly visible

Parents
  • Hi eaglez,

    As in process backed records the information on the record view comes from the process variables - which reflects the latest version of its value stored in the process variable.

    "...directly change process variables" - by this do you mean changing the process variable value in your process instance ?
    If yes - you can do that - here are the 2 scenarios.
    1) Using related action - which is the process itself on which your record is sourced (which on changing the process variable value will change the process record view accordingly)

    2) Using related action - you can have the form asking the updated (new) information with which you want to update the process variable and to and then using the Set External Activity smart node you can directly change that process variable.
    You need to have the process instance id with you which specifies in which of the process instance you want to modify your variable.
    Find below is the URL for this service from the shared component for your reference:
    forum.appian.com/.../summary

    Cons: Changing the value using this wont show up in the Audits in the Process instance history.

    Also, I would strongly recommend to move your process record view to data backed (entity backed) record considering your use case can easily be achieved using entity backed. Also it has huge advantage over process backed record in terms of:
    1) Memory Management no need of long lived processes)
    2) Higher flexibility in terms of customization of the records (facets, search etc)

    Hope it helps !
Reply
  • Hi eaglez,

    As in process backed records the information on the record view comes from the process variables - which reflects the latest version of its value stored in the process variable.

    "...directly change process variables" - by this do you mean changing the process variable value in your process instance ?
    If yes - you can do that - here are the 2 scenarios.
    1) Using related action - which is the process itself on which your record is sourced (which on changing the process variable value will change the process record view accordingly)

    2) Using related action - you can have the form asking the updated (new) information with which you want to update the process variable and to and then using the Set External Activity smart node you can directly change that process variable.
    You need to have the process instance id with you which specifies in which of the process instance you want to modify your variable.
    Find below is the URL for this service from the shared component for your reference:
    forum.appian.com/.../summary

    Cons: Changing the value using this wont show up in the Audits in the Process instance history.

    Also, I would strongly recommend to move your process record view to data backed (entity backed) record considering your use case can easily be achieved using entity backed. Also it has huge advantage over process backed record in terms of:
    1) Memory Management no need of long lived processes)
    2) Higher flexibility in terms of customization of the records (facets, search etc)

    Hope it helps !
Children
No Data