Triggered operation in Rhapsody has no effect

3351 Betrachtungen
Seite: 1
MichaelKamsties
avatar
Administrator
75 Beiträge

Triggered operation in Rhapsody has no effect

I call a triggered operation, but nothing happens. I get no error message, and the next operation is called. What is the problem.?

MichaelKamsties
avatar
Administrator
75 Beiträge

Re: Triggered operation in Rhapsody has no effect

Triggered operations don't behave like normal primitive operations. Triggered operations can be used like events in statecharts to be a trigger of a transition.

Cyman
avatar
Community Member
5 Beiträge

Triggered operation in Rhapsody has no effect

I have a trggert operation in a small statechart (2 states). In action I call a simple function. After some hours the function in action won't be called, but the triggert operation is called. That means, that the statechart did not work!

What is the problem?

MichaelKamsties
avatar
Administrator
75 Beiträge

Re: Triggered operation in Rhapsody has no effect

Hi

how do you create the class/object with the statechart ? If you use the <Class>_Create function you had to call the function <Class>_startBehavior to start the behavior of the statechart.

Cyman
avatar
Community Member
5 Beiträge

Re: Triggered operation in Rhapsody has no effect

I use the _Create and also the _startBehavior function. The statechart works fine for a limited time.

MichaelKamsties
avatar
Administrator
75 Beiträge

Re: Triggered operation in Rhapsody has no effect

I have added a simple model showing how triggered operations work.

Example Triggered Operations

In this model you can see that the object Tester has a triggered operation and wait for it
Class CallTrig has also a statechart and call the triggered operation. Open the animated sequence diagram "trace" you will see that all functions are called as expected during execution.

If this not help: please send a little model showing your problem to our support.

Seite: 1

Currently Online:

There is nobody online.

Welcome to our latest member: bymnPymnbiome