Instance Method

insertAction:atIndex:

Inserts the specified action at the specified position of the receiving workflow.

Declaration

- (void)insertAction:(AMAction *)action atIndex:(NSUInteger)index;

Parameters

action

The action to insert.

index

The position in the receiver at which to insert the action. If the position is invalid, this method does nothing.

Discussion

The workflow retains the action but does not copy it.

See Also

Manipulating the workflow’s actions

- addAction:

Adds the specified action at the end of the receiving workflow.

- moveActionAtIndex:toIndex:

Moves the action from the specified start position to the specified end position in the receiving workflow.

- removeAction:

Removes the specified action from the receiver.