6 Replies Latest reply on May 24, 2016 6:30 AM by Elaine

    Change Process

    Elaine Apprentice

      Sorry I am pretty new to building a new process.

      In my Change Process I have the Decisions -  Standard Change, Emergency Change, High or Medium or Low Change.   

       

      On the Window I have  Attribute - Change Class so if you select one of those decisions from the drop down it follows the correct path.  I now want to add another Attribute for Categories but in the Categories is Emergency which needs to follow the Emergency Process for example

       

      Categories  = Emergency, Planned, Standard, Urgent

      Change Class = high, Low, Medium, Standard.

       

      So if the end user selects Emergency and High it need to follow the Emergency Route but if Planned and High is selected it follows the High route.  At the moment if Emergency is selected from Categories and any in Class it follows the Standard process.

       

      How do I get the process to look at Categories to find Emergency and Change Class for the rest, I have a feeling it might be a calculation.

       

      Hope that is not too confusing.  Thanks in advance.

        • 1. Re: Change Process
          Eric Xiang SupportEmployee

          Hi Elaine,

          I'm new to LDSD myself.

          You may try to create 3 objects: influence and emergency to get severity defined by creating rules.

          I think the pic attached may give you some clue.

          I hope that my answer solves your problem.  If it does, please set my answer as "Correct Answer", and this will help other customers to find the right answer in this discussion in future.

          Untitled.png

          • 2. Re: Change Process
            Elaine Apprentice

            Thank you for your response I will give it a try and if successful will mark as correct. 

            • 3. Re: Change Process
              CraigMiddelstadt Master

              If you want this evaluation to occur in the process, I would recommend creating a calculation decision.  Something like the following:


              import System

              static def GetAttributeValue(Change):

                   Value = false

                   if Change.Category != null:

                        if Change.Category.Name == "Emergency":

                             if Change.ChangeClass != null:

                                  if Change.ChangeClass.Title == "High":

                                       Value = true

                   return Value

               

              Craig Middelstadt

              • 4. Re: Change Process
                Andrew Swindells SupportEmployee

                Hi,

                 

                Here is a (very) rough process sketch of how you would need to modify your process. The pre-condtion of 'Status is Open' should already exist in your DB as should a 'Move On' type of action.

                 

                1.png

                 

                Then your 'Is Emergency & High' condition would be a calculation that looks something like:

                 

                import System
                static def GetAttributeValue(Change):
                     Value = false
                     if Change.Category != null:
                          if Change.Category.FullName == "Emergency":
                               if Change._ChangeClass != null:
                                    if Change._ChangeClass.Title == "High":
                                         Value = true
                     return Value
                
                
                

                 

                This is obviously assuming the object names, yours may well be different!

                 

                Hope that helps in someway?

                 

                :-)

                • 5. Re: Change Process
                  Elaine Apprentice

                  Hi Andrew - thanks for your response I will give it a try.

                  • 6. Re: Change Process
                    Elaine Apprentice

                    Sorry for the delay in replying and thanks for your replies.  I did not need to write a calculation I ended up doing the following:

                     

                    In my Change Process I have the Decisions -  Standard Change, Emergency Change, High or Medium or Low Change. 

                    I changed the Emergency Decision to point to Categories

                     

                    So it now follows the correct path.