Is there a way to get the process model ID from its UUID?...

Is there a way to get the process model ID from its UUID?...

OriginalPostID-127577

OriginalPostID-127577

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer
    Is there a way to use the UUID with the "Start Process Model" smart service in 17.1? I can use the ID to start the process, but I'd rather use UUID, since ID differs per environment. (I want to set up constants to point to the processes that will be started, which differ per environment. Unfortunately, environmental constants can only be used on primitive types - hence my preference for using UUID over ID, since I can't use a Process Model type for this constant.)

    getprocessmodeldetailsbyuuid returns a string that would need to be parsed to get the ID, which is not ideal. A more direct function to get just the ID would be best, or something that returns it in a dictionary instead of a string.
  • 0
    Certified Lead Developer
    in reply to Jason Ruvinsky

    Hi  . I have to implement the same. can you let me know what approach have you choose?

  • 0
    Certified Lead Developer
    in reply to yashig2399
    Any reason you don't create constants of type "Process Model", which are fine being exported/imported to different environments and can be used directly in the smart service?

    I think this is still a valid question.

  • 0
    Certified Senior Developer
    in reply to yashig2399

    Our use case is special because we have one shared development environment, but two separate production environments that house different applications. The constant was part of a common object (LDAP Sync post sync processes) that goes to both environments, but needed to call different processes depending on which production environment it lived on. I had to create multiple versions of this application, with the settings for each target environment. I renamed the app for each with the environment name in it, so it is easy to tell them apart. When making changes, I need to import into dev each, make the changes to the process model constants (and other changes that have dependencies on different apps), and then export again / re-import the dev version. This is all very closely tied to our setup and use case, however, and may not apply to you.

Reply
  • 0
    Certified Senior Developer
    in reply to yashig2399

    Our use case is special because we have one shared development environment, but two separate production environments that house different applications. The constant was part of a common object (LDAP Sync post sync processes) that goes to both environments, but needed to call different processes depending on which production environment it lived on. I had to create multiple versions of this application, with the settings for each target environment. I renamed the app for each with the environment name in it, so it is easy to tell them apart. When making changes, I need to import into dev each, make the changes to the process model constants (and other changes that have dependencies on different apps), and then export again / re-import the dev version. This is all very closely tied to our setup and use case, however, and may not apply to you.

Children
No Data