Wait until ADSAccount is created

Hello,

I have a process that calaculate and update an attribute in ADSAccounts based on Busienss Roles.

When the process is triggered, i want :

1- check if an ADSAcount already exist (even disabled)

   if yes, then compute the new value of attribute

 if no, wait until and ADSAccount is inserted (given by the Business roles, but takes up to 30 seconds)

So i want to implement this in a process : Wait until an ADSAccount is inserted

Any isea which component can provide this possibility?

Thank you by advance

Parents
  • Hi,

    have a look at "ProjectorComponent", there is a task "Object Exists".

    Regards,

       Tino

  • Thank you

    Do you have an example?

    And does it include : Wait until an object is created?

    Thnks

  • Hi,

    you find examples in module OLG (processes "OLG_OLGUserHasOLGPrivilege_Insert" and "OLG_OLGUserHasOLGAuthFactor_Insert") and in module SAP (process "SAP_SAPComSMTP_Insert/Update" ,  "SAP_SAPUserMandant_Insert" and much more).

    The main idea is very simple: you add a step to your process using the task "ObjectExists" which will fail if user is not available yet. Configure the step using sleep time and enough retries. If the user is available the process will step forward.

     

  • Thank you very much bro

    I have not installed moduels OLG or SAP so i can t find those examples

    Any other OFTB module with an example of using this component in 9.1

    Kind regards,

  • Yes, Exchange (Modules EXH and EX0) also has an example: "EX0_2010_EX0Mailbox_Update/Deactivate" and "EXH_EXHRemoteMailbox_Update/Deactivate".

  • Thank you so much

    Added the component as a step

    but i don t know what to put here in those params :

    AuthenticationString    Value = ConnectionInfo.AuthString   

    CausingEntityPatch    Value = DPR_WrapObjectForProjection(Entity)  

    ConnectionProvider    Value = ConnectionInfo.ConnectionProvider   

    ConnectionString    Value = ConnectionInfo.ConnectionString   

    UID_DPRProjectionConfiguration    Value = values("UID_DPRProjectionConfiguration").ToString()   

    UID_DPRSystemVariableSet    Value = values("UID_DPRSystemVariableSet").ToString()   

    I have uid_person from precedent step, and i want just to check if an ADSAccount exists using uid_person or Wait until one is inserted..

Reply
  • Thank you so much

    Added the component as a step

    but i don t know what to put here in those params :

    AuthenticationString    Value = ConnectionInfo.AuthString   

    CausingEntityPatch    Value = DPR_WrapObjectForProjection(Entity)  

    ConnectionProvider    Value = ConnectionInfo.ConnectionProvider   

    ConnectionString    Value = ConnectionInfo.ConnectionString   

    UID_DPRProjectionConfiguration    Value = values("UID_DPRProjectionConfiguration").ToString()   

    UID_DPRSystemVariableSet    Value = values("UID_DPRSystemVariableSet").ToString()   

    I have uid_person from precedent step, and i want just to check if an ADSAccount exists using uid_person or Wait until one is inserted..

Children