Defining Custom GenEvent Messages

You can define custom GenEvent messages using placeholder strings, which allows you to populate those messages with actual values upon generation. If you do not customize a message, GenEvent uses the default message. You cannot localize custom GenEvent messages.

Some actions, including write, data set update, method call, and procedure call, may require authorization upon execution. When authorization is required, the Performer and the Verifier must each provide a user name, password, and description message. You can include this additional information in the GenEvent messages. For more information, see Authorization in Global Settings.

To define a custom GenEvent message:

  1. Using a text editor, browse to the C:\ProgramData\ICONICS folder and open the FwxServer.Network.config file.

  2. In the FwxServer.Network.config file, locate the <AuditLog><MessageOverride> section.

    • Standard: Locate the desired tag in the action section (<Write>, <HistoryWrite>, <HistoryDeleteRaw>, etc.).

      For example, to customize a standard message for a successful write, locate the following tag:

      <Write>
      <SucceededMessageFormat />

    • Authorization: Locate the desired tag in the <ExtraAuthorization> section.

      For example, to customize an authorization message for a method call, locate the following tag:

      <ExtraAuthorization>
      <MethodCallMessageFormat />

  3. Rewrite the tag containing one or more parameters, as well as static descriptive text and punctuation that provides information or context for each parameter:

    <TagName>Description1 is {parameter1} and Description2 is {parameter2} ...</TagName>

    Click a link below to view the available parameters:

    GenEvent Message Examples:

    • Standard

      To customize <SucceededMessageFormat /> with Result, PreviousValue, NewValue, and Source, enter the following:

      <SucceededMessageFormat>The result: {result}; Previous Value = {prevValue} and New Value = {newValue}; SOURCE {source}.</SucceededMessageFormat>

      Which writes the following message:

      The result: Good; Previous Value = 12 and New Value = 14; SOURCE GraphWorX.</SucceededMessageFormat>

    • Authorization

      To customize <WriteMessageFormat /> with NewValue, PrevValue, PerformerUserName, and MachineName, enter the following:

      <WriteMessageFormat>FDA Write: New={NewValue} Previous={PrevValue} Performer={PerformerUserName} Machine={MachineName}.</WriteMessageFormat>

      Which writes the following message:

      FDA Write: New=55 Previous=0 Performer=icoadmin Machine=icoadmincomputer.

  4. In your text editor, save the changes.

  5. Restart FrameWorX Server.

 

See Also:

Platform Services Configuration