The OGSA-DAI Trigger component provides a mechanism to notify an OGSA-DAI server when a table in an SQL database has had its rows modified. It then executes a stored OGSA-DAI workflow to perform an action based on the notification. The trigger also provides the old and new values for the modified row which allows specific actions to be taken based on the exact database changes. These actions can use the full range of access, transformation, and delivery functionality available in OGSA-DAI. License: The Apache License 2.0 Changes:
An example Scenario was added to illustrate how the triggers could be used with OGSA-DAI. A crash in the .dll caused by incorrect deallocation of a null pointer was fixed. Many updates and fixes were made to the documentation.
mainpid=$$
(trap "echo timeout" SIGTERM SIGKILL SIGINT; sleep 5; kill $mainpid) &
watchdogpid=$!
sleep 10 #do something
kill $watchdogpid
I design a timeout function script
I don't see the echo "timeout" is on the screen (1 Reply)
Hi,
I'm looking for a way to solve the following scenario:
A shell should automatically trigger / run when a text file is placed or present at a specific location.
My idea - to create a cron / anacron for every minute and inside that i will call a temp script. Temp script will move to my... (9 Replies)
Hi all...
Has _below_ ever been done in UNIX shell scripting before?
(I have done this easily in Python but this is using purely the shell.)
The DEMO version IS built and has been tested.
Pre-amble...
I now need at least one control pulse for the AudioScope.sh when in PURELY audio I/O mode,... (2 Replies)
Hi, I'm totally new in Control-M and I really need some help. Here's my problem.
I need to make job X from a server trigger job Y from a different server where job X must receive a confirmation first before execution. :confused:
I really have no idea on how to do that so can you please give... (1 Reply)
hi all,
i hope i am posting this /beginner) question in the right forum:
i want to create an update trigger, which rolls back a transaction if a record of a table is updated. the table has - amongst others - a field 'statusid' - if a record in this table has the statusid X and it is attempted... (0 Replies)
If test.ksh is successful then I have a sequence of script which needs to execute automatically. Is it possible to capture the return code to execute the next script automatically? what is better way of doing this. (4 Replies)
Hello,
I need to trigger every time enter has been clicked while some one on terminal
i tried to googleit but with out result any idea ??
thanks in advance (3 Replies)
SoPathSensor(3) Coin SoPathSensor(3)NAME
SoPathSensor -
The SoPathSensor class detects changes to paths.
If you need to know when a path changes (i.e. nodes in the path has been removed, or new nodes is added), use this sensor to get a
notification.
SYNOPSIS
#include <Inventor/sensors/SoPathSensor.h>
Inherits SoDataSensor.
Public Types
enum TriggerFilter { PATH = 0x1, NODES = 0x2, PATH_AND_NODES = 0x3 }
Public Member Functions
SoPathSensor (void)
SoPathSensor (SoSensorCB *func, void *data)
virtual ~SoPathSensor (void)
void setTriggerFilter (const TriggerFilter type)
TriggerFilter getTriggerFilter (void) const
void attach (SoPath *path)
void detach (void)
SoPath * getAttachedPath (void) const
Protected Member Functions
virtual void notify (SoNotList *l)
Detailed Description
The SoPathSensor class detects changes to paths.
If you need to know when a path changes (i.e. nodes in the path has been removed, or new nodes is added), use this sensor to get a
notification.
You can also use this sensor to detect when some node in the path is changed.
An SoPathSensor can also act for delete-callback purposes alone and does not need a regular notification-based callback. The delete
callback will be invoked for when the SoPath instance is deleted, not for anything you would be monitoring in a path.
Member Enumeration Documentation
enum SoPathSensor::TriggerFilter
Trigger filter, which decides if the sensor should trigger on path changes, changes on nodes in the path, or both.
Enumerator:
PATH Trigger on path changes only.
NODES Trigger on node changes only. This can be nodes in the path, or nodes affecting the nodes in the path (nodes that updates the state
and are left of the node in the path).
PATH_AND_NODES
Trigger on both path changes and node changes.
Constructor & Destructor Documentation
SoPathSensor::SoPathSensor (void)
Default constructor. Use setFunction() to set up a callback function later.
SoPathSensor::SoPathSensor (SoSensorCB *func, void *data)
Constructor taking as parameters the sensor callback function and the userdata which will be passed the callback.
See also:
setFunction(), setData()
SoPathSensor::~SoPathSensor (void) [virtual]
Destructor.
Member Function Documentation
void SoPathSensor::setTriggerFilter (const TriggerFilterfilter)
Set the TriggerFilter for this sensor.
The default is PATH_AND_NODES.
Since:
Coin 2.0
SoPathSensor::TriggerFilter SoPathSensor::getTriggerFilter (void) const
Return the TriggerFilter for this sensor.
Since:
Coin 2.0
void SoPathSensor::attach (SoPath *path)
Attach sensor to a path. Whenever the path changes, the sensor will be triggered and call the callback function.
When the SoPath instance is deleted, the sensor will automatically be detached.
See also:
detach()
void SoPathSensor::detach (void)
Detach sensor from path. As long as an SoPathSensor is detached, it will never invoke its callback function.
See also:
attach()
SoPath * SoPathSensor::getAttachedPath (void) const
Returns a pointer to the path connected to the sensor.
See also:
attach(), detach()
void SoPathSensor::notify (SoNotList *l) [protected], [virtual]
Called from entity we are monitoring when it changes.
If this is an immediate sensor, the field and node (if any) causing the change will be stored and can be fetched by getTriggerField() and
getTriggerNode(). If the triggerpath flag has been set, the path down to the node is also found and stored for later retrieval by
getTriggerPath().
See also:
setTriggerPathFlag()
Reimplemented from SoDataSensor.
Author
Generated automatically by Doxygen for Coin from the source code.
Version 3.1.3 Wed May 23 2012 SoPathSensor(3)