C# 클래스 Rock.Workflow.ActionComponent

Base class for components that perform actions for a workflow
상속: Rock.Extension.Component
파일 보기 프로젝트 열기: NewSpring/Rock

공개 메소드들

메소드 설명
ActionComponent ( ) : System

Initializes a new instance of the ActionComponent class.

Execute ( RockContext rockContext, WorkflowAction action, Object entity, List &errorMessages ) : System.Boolean

Executes the action.

GetActionAttributeValue ( WorkflowAction action, string key ) : string

Gets the action attribute value.

GetAttributeValue ( string key ) : string

Use GetAttributeValue( WorkflowAction action, string key) instead. Workflow action attribute values are specific to the action instance (rather than global). This method will throw an exception

LoadAttributes ( WorkflowAction action ) : void

Loads the attributes for the action. The attributes are loaded by the framework prior to executing the action, so typically workflow actions do not need to load the attributes

보호된 메소드들

메소드 설명
GetAttributeValue ( WorkflowAction action, string key ) : string

Gets the attribute value for the action

GetAttributeValue ( WorkflowAction action, string key, bool checkWorflowAttributeValue ) : string

Gets the attribute value.

GetMergeFields ( WorkflowAction action ) : object>.Dictionary

Resolves the merge fields.

SetWorkflowAttributeValue ( WorkflowAction action, System.Guid guid, string value ) : void

Sets the workflow attribute value.

메소드 상세

ActionComponent() 공개 메소드

Initializes a new instance of the ActionComponent class.
public ActionComponent ( ) : System
리턴 System

Execute() 공개 추상적인 메소드

Executes the action.
public abstract Execute ( RockContext rockContext, WorkflowAction action, Object entity, List &errorMessages ) : System.Boolean
rockContext Rock.Data.RockContext The rock context.
action WorkflowAction The workflow action.
entity Object The entity.
errorMessages List The error messages.
리턴 System.Boolean

GetActionAttributeValue() 공개 정적인 메소드

Gets the action attribute value.
public static GetActionAttributeValue ( WorkflowAction action, string key ) : string
action WorkflowAction The action.
key string The key.
리턴 string

GetAttributeValue() 보호된 메소드

Gets the attribute value for the action
protected GetAttributeValue ( WorkflowAction action, string key ) : string
action WorkflowAction The action.
key string The key.
리턴 string

GetAttributeValue() 보호된 메소드

Gets the attribute value.
protected GetAttributeValue ( WorkflowAction action, string key, bool checkWorflowAttributeValue ) : string
action WorkflowAction The action.
key string The key.
checkWorflowAttributeValue bool if set to true and the returned value is a guid, check to see if the workflow /// or activity contains an attribute with that guid. This is useful when using the WorkflowTextOrAttribute field types to get the /// actual value or workflow value.
리턴 string

GetAttributeValue() 공개 메소드

Use GetAttributeValue( WorkflowAction action, string key) instead. Workflow action attribute values are specific to the action instance (rather than global). This method will throw an exception
Workflow Action attributes are saved specific to the current action, which requires that the current action is included in order to load or retrieve values. Use the GetAttributeValue( WorkflowAction action, string key ) method instead.
public GetAttributeValue ( string key ) : string
key string The key.
리턴 string

GetMergeFields() 보호된 메소드

Resolves the merge fields.
protected GetMergeFields ( WorkflowAction action ) : object>.Dictionary
action WorkflowAction The action.
리턴 object>.Dictionary

LoadAttributes() 공개 메소드

Loads the attributes for the action. The attributes are loaded by the framework prior to executing the action, so typically workflow actions do not need to load the attributes
public LoadAttributes ( WorkflowAction action ) : void
action WorkflowAction The action.
리턴 void

SetWorkflowAttributeValue() 보호된 메소드

Sets the workflow attribute value.
protected SetWorkflowAttributeValue ( WorkflowAction action, System.Guid guid, string value ) : void
action WorkflowAction The action.
guid System.Guid The unique identifier.
value string The value.
리턴 void