From Active MQ

From Active MQ

A workflow can be initiated by an MQ message.

Create a new workflow and specify input type as either "From ActiveMQ" or "From IBM MQ" depending on what type of MQ that sends the message.

 

When you select Active MQ as the input type on a workflow you see this:

 

NG2ActiveMQ0001

 

 

Source type

As "source type" specify either queue or topic depending on whether the messages come from a queue or a topic.

 

Source name

As "source name" specify the name of the queue/topic to listen to messages from.

 

Broker URL

For ActiveMQ you also need to specify the broker URL of the MQ. If you are using the embedded ActiveMQ, then the broker URL is configured in the system settings. Otherwise find the broker URL from your ActiveMQ configuration.

 

Input type

Here you specify the file type, that the workflow is to expect to receive on this message queue. Possible values are:

 

NG2ActiveMQ0002

 

When sending messages to an MQ, all InterFormNG workflow metadata values are included as headers on the message. When receiving MQ messages in InterFormNG, all message headers will be converted into workflow metadata.

The characters hyphen "-" and dot "." are not allowed in JMS header names. However these characters are commonly used in InterFormNG metadata names, so when sending MQ messages, InterFormNG will change these characters into a valid string sequence. In the same way, By default dot is changed to "_DOT_" and hyphen is changed to "_HYPHEN_". When receiving MQ messages, those string sequences are similarly changed back to dot and hyphen in the InterFormNG metadata names.

This is important to be aware of when interchanging MQ messages between InterFormNG and other systems.

 

You can change the character sequences that dot and hyphen are changed into.

To do this you need to log in as system administrator and select "settings" from the top navigation bar. In the "Message Queue" section under "character replace" you can change the strings that are used to replace dot and hyphen. Make sure that your string sequence is valid in JMS header names.

 

If you do not already have a separate ActiveMQ installation, you can choose to enable the embedded ActiveMQ that is included in InterFormNG.

To enable it you need to log in as system administrator and select "settings" from the top navigation bar. In the "Message Queue" section, enable the setting "Embedded ActiveMQ". Once enabled, you can also select the broker URL that you want to use to access it.

Note that after enabling/disabling embedded ActiveMQ you need to restart the InterFormNG service before the changes take effect.

    • Related Articles

    • Global Active MQ setup

      If you want to use ActiveMQ, then you can use the embedded ActiveMQ of InterFormNG2. In order to setup the global email server, you first need to sign in as described here. Then you click Message Queue on the left below Workflow: Now you can enable ...
    • IBM MQ

      If you want to use IBM Message Queues with InterFormNG2, then you need to set it up in the tenant settings. You can use IBM Message Queues in the workflow with the input type From IBM MQ. In order to setup IBM Message queues, you first need to sign ...
    • IBM MQ send message

      To send a message to an IBM MQ as part of a workflow, insert a new component at the point in the workflow where you want to send the message. From the "Advanced" components tab select "IBM MQ send message" to send a message to an IBM MQ. Note, that ...
    • From IBM MQ

      When using IBM MQ you need to configure some connection settings for InterFormNG2 to be able to connect to it. MQ name In the "MQ name" field specify the IBM MQ, that you want to use. You need to first have that defined in the settings of ...
    • Workflow input types

      The workflows of InterFormNG2 can get the input from various input types. In the workflow the input type is shown as the leftmost (green) component: The input types are all listed here: AS400 Command input Call InterFormNG2 via a command on the IBM i ...