Search

Search:

Namespace:

Search Result
.
          • SequenceActivity
.
.

public partial class ValidatedActivity : SequenceActivity

.
Summary
A SequenceActivity that allows for compensation logic.
.

compensatableSequenceActivity1 is similar to the transactions which is used to roll back the long run changes

.

The TargetActivityName must point to an activity of type ICompensatableActivity. By default there are two the CompensatableSequenceActivity and the CompensatableTransactionScopeActivity.

.

SequenceActivity

.

A Sequence activity is a composite activity, and can run one or more contained activities. The activities inside a sequence activity will execute one at a time, until the last activity completes. The WhileActivity only permits a single child activity, but if we make the single activity a SequenceActivity, we can drop additional activities inside the sequence activity. All of the children will then run each time the WhileActivity completes an iteration.

.

The Fault Handlers activity isn't an activity we can drag from the Toolbox into the workflow designer. Instead, the workflow designer will provide the activity for us when the condition is right. Many composite activities (like the WhileActivity, ListenActivity, SequenceActivity, TransactionScopeActivity, and others) can handle faults from their child activities using a fault handlers view

.
    public partial class ChangePageActivity: SequenceActivity
.

It is a CompositeActivity that is used to handle an event; typically it can be raised from the host or by the run time in reponse to a delay timer expiring. EventDrivenActivity is inherited from SequenceActivity; therefore it is a sequence that has the additional restriction that the first activity should be an IEventActivity.

.

The EventDrivenActivity is a CompositeActivity, meaning the EventDrivenActivity can contain other activities. The EventDrivenActivity is similar to the SequenceActivity activity, with some additional characteristics.

.

SequenceActivity

.

A Sequence activity is a composite activity, and can run one or more contained activities. The activities inside a sequence activity will execute one at a time, until the last activity completes. The WhileActivity only permits a single child activity, but if we make the single activity a SequenceActivity, we can drop additional activities inside the sequence activity. All of the children will then run each time the WhileActivity completes an iteration.

.

The Fault Handlers activity isn't an activity we can drag from the Toolbox into the workflow designer. Instead, the workflow designer will provide the activity for us when the condition is right. Many composite activities (like the WhileActivity, ListenActivity, SequenceActivity, TransactionScopeActivity, and others) can handle faults from their child activities using a fault handlers view

.

Standard there are two Activities that implement this interface, the CompensatableTransactionScopeActivity and the CompensatableSequenceActivity.

.

The ParallelActivity is a CompositeActivity, meaning the ParallelActivity can contain other activities. The SequenceActivity activity is the only activity that can be the child of a ParallelActivity.

.

One easy way is to add a SequenceActivity as a placeholder where you want to add your new functionality like this:

.

SequenceActivity activity =

.
    (SequenceActivity)changes.TransientWorkflow.GetActivityByName("dynamicActivity");
.

The SequenceActivity is a CompositeActivity, meaning the SequenceActivity can contain other activities.

.

The SequenceActivity class coordinates the running of a set of child activities in an ordered manner, one at a time. The SequenceActivity is completed when the final child activity is finished.

.

Classes that derive from SequenceActivity should not implement the IActivityEventListener interface, or the derived class will not execute correctly.

.

A WhileActivity can only contain a single child activity, the same is true for a ReplicatorActivity. However a IfElseActivity and a ListenActivity can contain multiple child activities. Now the difference doesn't matter much as the single activity in the WhileActivity or ReplicatorActivity can be a SequenceActivity which in turn can contain multiple children but still it's confusing.

.
  1. Add watherver work needs to be done to the normal flow. Note you might need a SequenceActivity activity if you are going to add multiple children.