Triggering Export Using Business Rule for Server Opening

Export of the structure can be automatically initiated or triggered (on specific 3DEXPERIENCE platform user action) by a business rule associated to a server opening on particular PLMType or P&O project.

For more information about Business rule and server openings, see Project Resource Management Guide.

Environment: On premises only

  1. Create a business rule as shown below:

    Integer SendToXPDM(PLMCoreReference iObject, String iTargetSiteId,String iQueueName,List iCustomParameters)

    Input Parameters

    Description

    iObject

    The root object of the structure that will be exported. Most of the time, it is the ThisObject business rule input parameter.

    iTargetSiteId

    The identification string of the destination system as deployed in the customer set up.

    iQueueName

    The name of the destination queue of the resulting event. It is recommended to use the name of the user that triggered the business rule execution.

    For example: Parameters.UserID

    iCustomParameters

    An optional list containing some customer defined name or value parameters. The list must contain a even numbers of element and for each parameters the name must be added before the value.

    For example:

    iCustomParameters.Append(“name1”)
    iCustomParameters.Append(“value1”)
    iCustomParameters.Append(“name2”)
    iCustomParameters.Append(“value2”)

    These parameters are retrieved on X-PDM side using the Events Service webservice of the X-PDM side gateway and allow the X-PDM adaptor to have some more context information for the processing of the event.

  2. Associate the Business rule with a P & O Project and object type.
  3. Deploy the business rule on the server.
  4. Depending on the return code value of the function the business rule can build a dedicated message that gets displayed on the rich client.

    Return code value Description
    0

    OK

    1

    Input object not supported

    2

    No target site provided

    3

    Invalid input arguments

    4

    Error while sending the event

    5 No destination Queue Name provided