ION Messaging Service

VinayakShetty
VinayakShetty Member, Infor Partner Posts: 21

Is it possible to trigger an alert from ION Messaging service and call the messaging service API from external application?

Comments

  • DM9346
    DM9346 Member Posts: 8

    Not exactly what you need but I call the create mingle notification service via connection point in a dataflow

    IONSERVICES/process/application/v1/pulse/notification/create

    logicalid: lid://infor.iondesk.iondesk

    body:
    {
    "message": "API has encountered an error.",
    "category": "Integration",
    "parameters": [
    {
    "dataType": "STRING",
    "name": "requestID",
    "value": {"IonApiRef":"BODPATH/requestID"},
    "readOnly": true
    },
    {
    "dataType": "STRING",
    "name": "apiMethod",
    "value": {"IonApiRef":"BODPATH/apiMethod"},
    "readOnly": true
    },
    {
    "dataType": "STRING",
    "name": "responseCode",
    "value": {"IonApiRef":"BODPATH/responseCode"},
    "readOnly": true
    },
    {
    "dataType": "STRING",
    "name": "responseDescription",
    "value": {"IonApiRef":"BODPATH/responseDescription"},
    "readOnly": true
    }
    ],
    "distribution": [
    {
    "identifier": "distributionlist",
    "type": "GROUP",
    "sendMail": true
    }
    ]
    }

  • Danil Klemeshov
    Danil Klemeshov Member, Staff Posts: 22

    Hi,

    You can create a Monitor based on a BOD you receive in the IMS connection point and create an Alert.
    Another option is to call an ION API from a Data Flow to create an Alert.

    Here is more information about Monitors and how to call IMS from a 3rd party app:

  • VinayakShetty
    VinayakShetty Member, Infor Partner Posts: 21

    Thank you Daniel for your help! It worked, and I was able to send the message using POST with a "202 Accepted" response. However, I am unable to see the messages in the OneView. I can only see the count against active connection points.

  • Kevin Heiman
    Kevin Heiman Member, Staff Posts: 17

    If I understand your implementation…

    …trigger an alert from ION Messaging service and call the messaging service API from external application?
    you want to have a external API client call into ION process engine and put a message into some user or groups port InBox and/or send an email of notification.
    I am unclear what role the ION Messaging service (IMS) would play in this.

    You can call the APIs directly from the client when the requirement to do so occurs.

    IMS is more for sending / receiving Payloads to a ION Data Flow via a API Client or API server. If you want a API client to trigger a workflow , then you can send a payload into ION on a IMS connection Point. 3 choices in this scenario;

    1. The Payload then can be managed in a Document flow, when the condition is needed, that data flow can invoke an API call to the Process engine just like the above noted API client could directly. This could be any payload
    2. Create a Process activation policy for the IMS Payload now (it must be a BOD (XML) , associate it to a Process Work Flow containing the Notification . When the IMS receives the message it will associate to the activation policy, and fire the Flow causing a message to be sent
    3. Create a Event monitor for the IMS Payload now (it must be a BOD (XML) , associate it to a Process Event Flow containing the Event messaging.

    Note that for 2 and 3, there are BODs (see PULSE / Workflow/ Event schemas) specific to Notifications events that the source system could send in, negating the need for a Policy or Rule.

    In your image of the active connection point, Sent No ROute indicates the client put something on the IMS however there was nothing defined on the ION side to catch it. The Sent count would be something From MT to the API IMS endpoint.

    All of this is with a lot of assumptions as there is little detail of the requirement specifics / or functionally, nor the configuration attempted.

    https://docs.infor.com/inforos/2024.x/en-us/useradminlib_cloud/default.html?helpcontent=iondeskceug_cloud_osm/lsm1436532200126.html
    https://docs.infor.com/inforos/2024.x/en-us/useradminlib_cloud/default.html?helpcontent=ioncedg_cloud_osm/lsm1436532223124.html

  • Danil Klemeshov
    Danil Klemeshov Member, Staff Posts: 22

    Hi,

    In the OneVIew you can add the "Sender Logical ID" filter and search for "infor.ims.dep".

    Kind regards,
    Danil.