WFTriggers extra information provides the list of all the workflow-execution triggers associated with the object. You can request it when loading an object from the database. E.g. executing:
cmd4 get -ids 5676 -extras wftriggers -out c:\temp\objs.xml -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.
produces an output file like this:
<ArrayOfGenericAccessObj xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GenericAccessObj>
<obj>
<folder id="obj5676" . . . >
. . .
</folder>
</obj>
<access perms="11111111111111111111111111" />
<extra n="WFTriggers">
<WFTriggerDescs>
<WFTriggerDesc Mode="Object" AttrName="" Name="TestTrigger" Priority="10" Profile="">
<Pars>
<wfSettings>
<add key="myParameter" value="myValue" />
</wfSettings>
</Pars>
</WFTriggerDesc>
<WFTriggerDesc Mode="Referencing" AttrName="folderObject.folderRef" Name="TestTrigger" Priority="5" Profile="test"/>
</WFTriggerDescs>
</extra>
</GenericAccessObj>
</ArrayOfGenericAccessObj>
The same information can be returned in the objects navigation XML - see http://forum.teradp.com/topic.asp?whichpage=1&TOPIC_ID=440#2967 .