Announcement

Collapse
No announcement yet.

Agents "Before Persist"?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Agents "Before Persist"?

    Can any one please explain me the use of "before persist" in Agent configuring, to be more specific on the "actions" tab for settting up agent. Explaining with example helps a lot..

    Thanks
    Vinoth
    Thanks,
    Vinoth Gopalakrishnan
    http://www.vinoth.co/
    Reach out for OTM/GTM - Transportation/Logistics and Blockchain Consultations/Strategy

  • #2
    Re: Agents "Before Persist"?

    Vinoth

    The idea for Before Persist agents is that they trigger before the record / change is committed.

    For example if the agent were listening to Order Base - Created, you could run actions to check that you wanted the Order before allowing it to persist (commit).

    The Actions have the options for Persist and Do Not Persist - the later will stop the record from committing.

    Also be careful not to mix the actions of a Normal Agent and a Before Persist Agent - you'll notice the list of actions are very much smaller for the Before Persist agent.

    Now the warning:
    In my experience, these Before Persist agents are unreliable.
    I would (and do) avoid using them.

    Regards
    Gary
    Regards
    Gary Cunningham
    www.cbmc.co.uk
    www.mavenwire.com

    Comment


    • #3
      Re: Agents "Before Persist"?

      That was very understandable Gary!

      Vinoth
      Thanks,
      Vinoth Gopalakrishnan
      http://www.vinoth.co/
      Reach out for OTM/GTM - Transportation/Logistics and Blockchain Consultations/Strategy

      Comment


      • #4
        Re: Agents "Before Persist"?

        Hi,

        Also, the 'before persists' is mainly for integration stuff. mainly for the incoming xml to OTM.

        Regards,
        Nikesh

        Comment


        • #5
          Re: Agents "Before Persist"?

          I mainly use "before persists" for 2 screnarios:
          1) For OMD (Order Modify Delete) processes.
          2) Before delete an objects, send interface to external system and/or update statuses to related objects

          However, it is always tricky to make it work as you expected.
          --
          Joseph Liang
          MavenWire APAC
          http://www.mavenwire.com/

          Comment

          Working...
          X