Trigger mode

Build 1501 on 14/Nov/2017  This topic last edited on: 13/Sep/2015, at 15:00

You can create an object trigger specifying explicitly the mode e.g.:

cmd4 triggerwf -ids 3768 -mode Object -name MyWorkflow -username xxxx -password yyyy

where xxxx is the name of a GN4 user who can logon to system with sufficient permissions to perform this operation and yyyy is the password.

Note: the above connects to the default connection: should you want to specify the connection or server name, see cmd4 examples.

creates an object trigger that calls (via Back4) the workflow 'MyWorkflow' every time the object with id 3768 is modified in any way.

Note: Object is the default for -mode, so it can be omitted.

In version 1.5 there are two new trigger modes: 'ObjectIndex' and 'ReferencingIndex'.

'ObjectIndex' triggers fire when the specified object is full-text indexed by the Back4.

'ReferencingIndex' triggers fire when any object referencing the specified object via the specified attribute is full-text indexed by Back4.

Example 1

cmd4 triggerwf -ids 31860 -mode ReferencingIndex -attr folderObject.folderRef -name TestTrigger

creates a trigger that executes the workflow "TestTrigger" every time any object referencing the folder with id 31860 is full-text indexed by Back4

Example 2

cmd4 triggeralert -ids 38719 -mode ObjectIndex

creates a trigger that sends an alert every time the object with id 38719 is full-text indexed by Back4.

Note that full-text indexing triggers are never fired by direct full-text indexing commands executed by Srv4.

Important

To all above examples with cmd4 command you may need to add:

-username xxxx -password yyyy

where xxxx is the name of a GN4 user who can logon to system with sufficient permissions to perform this operation and yyyy is the password.

Note: the above connects to the default connection: should you want to specify the connection or server name, see cmd4 examples.