Interface IActivityBuilder
OptimaJet.Workflow.Core.Model.Builder.IActivityBuilder
Represents a builder for configuring an activity.
Namespace: OptimaJet.Workflow.Core.Model.Builder
public interface IActivityBuilder : IBaseActivityBuilder, IProcessDefinitionBuilderMethods
IActivityBuilder Name(string name) #Sets the name of the current activity.
Parameters
Name
Type
Description
nameStringThe name of the activity.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder State(string state) #Sets the state of the current activity.
Parameters
Name
Type
Description
stateStringThe state of the activity.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder NotState() #Resets the state of the current activity and marks it as not for set state.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder DisableSetState() #Disables the set state functionality for the current activity.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder EnableSetState() #Enables the set state functionality for the current activity.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder Initial() #Marks the current activity as initial.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder Final() #Marks the current activity as final.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder Basic() #Marks the current activity as neither initial nor final.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder EnableAutoSchemeUpdate() #Enables automatic scheme updates for the current activity.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder DisableAutoSchemeUpdate() #Disables automatic scheme updates for the current activity.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder CreateOrUpdateAnnotation(string name, string value) #Creates or updates an annotation for the current activity.
Parameters
Name
Type
Description
nameStringThe name of the annotation.
valueStringThe value of the annotation.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder CreateOrUpdateAnnotation(string name, object value) #Creates or updates an annotation for the current activity.
Parameters
Name
Type
Description
nameStringThe name of the annotation.
valueObjectThe value of the annotation as an object.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder DeleteAnnotation(string name) #Deletes an annotation from the current activity.
Parameters
Name
Type
Description
nameStringThe name of the annotation to delete.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder DisablePersistence() #Disables persistence for the current activity.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder EnablePersistence() #Enables persistence for the current activity.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder DisableTransitionHistoryPersistence() #Disables transition history persistence for the current activity.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder EnableTransitionHistoryPersistence() #Enables transition history persistence for the current activity.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder DisableParametersPersistence() #Disables parameter persistence for the current activity.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder EnableParametersPersistence() #Enables parameter persistence for the current activity.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder DisableStatePersistence() #Disables state persistence for the current activity.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder EnableStatePersistence() #Enables state persistence for the current activity.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IIdleTimeoutBuilder IdleTimeout(TimeSpan timeout) #Sets the idle timeout for the current activity.
Parameters
Name
Type
Description
timeoutTimeSpanThe timeout value.
Returns
Type
Description
IIdleTimeoutBuilderAn IIdleTimeoutBuilder for configuring the timeout.
IIdleTimeoutBuilder IdleTimeout(int timeout) #Sets the idle timeout for the current activity.
Parameters
Name
Type
Description
timeoutInt32The timeout value in seconds.
Returns
Type
Description
IIdleTimeoutBuilderAn IIdleTimeoutBuilder for configuring the timeout.
IActivityBuilder DeleteIdleTimeout() #Deletes the idle timeout for the current activity.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IIdleTimeoutBuilder UpdateIdleTimeout() #Updates the idle timeout for the current activity.
Returns
Type
Description
IIdleTimeoutBuilderAn IIdleTimeoutBuilder for configuring the timeout.
IExecutionTimeoutBuilder ExecutionTimeout(TimeSpan timeout) #Sets the execution timeout for the current activity.
Parameters
Name
Type
Description
timeoutTimeSpanThe timeout value.
Returns
Type
Description
IExecutionTimeoutBuilderAn IExecutionTimeoutBuilder for configuring the timeout.
IExecutionTimeoutBuilder ExecutionTimeout(int timeout) #Sets the execution timeout for the current activity.
Parameters
Name
Type
Description
timeoutInt32The timeout value in seconds.
Returns
Type
Description
IExecutionTimeoutBuilderAn IExecutionTimeoutBuilder for configuring the timeout.
IExecutionTimeoutBuilder UpdateExecutionTimeout() #Updates the execution timeout for the current activity.
Returns
Type
Description
IExecutionTimeoutBuilderAn IExecutionTimeoutBuilder for configuring the timeout.
IActivityBuilder DeleteExecutionTimeout() #Deletes the execution timeout for the current activity.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityExceptionHandlerBuilder CreateOrUpdateExceptionHandler(params string[] exceptions) #Creates or updates an exception handler for the current activity.
Parameters
Name
Type
Description
exceptionsString[]The exceptions to handle.
Returns
Type
Description
IActivityExceptionHandlerBuilderAn IActivityExceptionHandlerBuilder for configuring the exception handler.
IActivityExceptionHandlerBuilder CreateOrUpdateExceptionHandler(params Type[] exceptions) #Creates or updates an exception handler for the current activity.
Parameters
Name
Type
Description
exceptionsType[]The exceptions to handle.
Returns
Type
Description
IActivityExceptionHandlerBuilderAn IActivityExceptionHandlerBuilder for configuring the exception handler.
IActivityBuilder DeleteExceptionHandler(params string[] exceptions) #Deletes an exception handler for the specified exceptions from the current activity.
Parameters
Name
Type
Description
exceptionsString[]The exceptions to remove from the handler.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder DeleteExceptionHandler(params Type[] exceptions) #Deletes an exception handler for the specified exceptions from the current activity.
Parameters
Name
Type
Description
exceptionsType[]The exceptions to remove from the handler.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder DeleteExceptionHandlers() #Deletes all exception handlers from the current activity.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder DeleteImplementation(string? actionName = null) #Deletes the implementation with the specified action name from the current activity.
Parameters
Name
Type
Description
actionNameStringThe name of the action to delete. If null, all implementations are deleted.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityImplementationBuilder UpdateImplementation(string actionName) #Updates the implementation with the specified action name for the current activity.
Parameters
Name
Type
Description
actionNameStringThe name of the action to update.
Returns
Type
Description
IActivityImplementationBuilderAn IActivityImplementationBuilder for configuring the implementation.
IActivityImplementationBuilder CreateImplementationAtBegin(string actionName) #Creates an implementation at the beginning of the list for the current activity.
Parameters
Name
Type
Description
actionNameStringThe name of the action to create.
Returns
Type
Description
IActivityImplementationBuilderAn IActivityImplementationBuilder for configuring the implementation.
IActivityImplementationBuilder CreateImplementationAtEnd(string actionName) #Creates a pre-execution implementation at the end of the list for the current activity.
Parameters
Name
Type
Description
actionNameStringThe name of the action to create.
Returns
Type
Description
IActivityImplementationBuilderAn IActivityImplementationBuilder for configuring the implementation.
IActivityImplementationBuilder CreateImplementationBefore(string actionName, string targetActionName) #Creates a pre-execution implementation before the specified target action for the current activity.
Parameters
Name
Type
Description
actionNameStringThe name of the action to create.
targetActionNameStringThe name of the target action before which the new action will be created.
Returns
Type
Description
IActivityImplementationBuilderAn IActivityImplementationBuilder for configuring the implementation.
IActivityImplementationBuilder CreateImplementationAfter(string actionName, string targetActionName) #Creates a pre-execution implementation after the specified target action for the current activity.
Parameters
Name
Type
Description
actionNameStringThe name of the action to create.
targetActionNameStringThe name of the target action after which the new action will be created.
Returns
Type
Description
IActivityImplementationBuilderAn IActivityImplementationBuilder for configuring the implementation.
IActivityBuilder DeletePreExecution(string? actionName = null) #Deletes the pre-execution implementation with the specified action name from the current activity.
Parameters
Name
Type
Description
actionNameStringThe name of the action to delete. If null, all pre-execution implementations are deleted.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityImplementationBuilder UpdatePreExecution(string actionName) #Updates the pre-execution implementation with the specified action name for the current activity.
Parameters
Name
Type
Description
actionNameStringThe name of the action to update.
Returns
Type
Description
IActivityImplementationBuilderAn IActivityImplementationBuilder for configuring the implementation.
IActivityImplementationBuilder CreatePreExecutionAtBegin(string actionName) #Creates a pre-execution implementation at the beginning of the list for the current activity.
Parameters
Name
Type
Description
actionNameStringThe name of the action to create.
Returns
Type
Description
IActivityImplementationBuilderAn IActivityImplementationBuilder for configuring the implementation.
IActivityImplementationBuilder CreatePreExecutionAtEnd(string actionName) #Creates a pre-execution implementation at the end of the list for the current activity.
Parameters
Name
Type
Description
actionNameStringThe name of the action to create.
Returns
Type
Description
IActivityImplementationBuilderAn IActivityImplementationBuilder for configuring the implementation.
IActivityImplementationBuilder CreatePreExecutionBefore(string actionName, string targetActionName) #Creates a pre-execution implementation before the specified target action for the current activity.
Parameters
Name
Type
Description
actionNameStringThe name of the action to create.
targetActionNameStringThe name of the target action before which the new action will be created.
Returns
Type
Description
IActivityImplementationBuilderAn IActivityImplementationBuilder for configuring the implementation.
IActivityImplementationBuilder CreatePreExecutionAfter(string actionName, string targetActionName) #Creates a pre-execution implementation after the specified target action for the current activity.
Parameters
Name
Type
Description
actionNameStringThe name of the action to create.
targetActionNameStringThe name of the target action after which the new action will be created.
Returns
Type
Description
IActivityImplementationBuilderAn IActivityImplementationBuilder for configuring the implementation.
IActivityBuilder CreateCommentary(string comment) #Creates a commentary for the current activity.
Parameters
Name
Type
Description
commentStringThe commentary text.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder AppendCommentary(string comment) #Appends a commentary to the current activity.
Parameters
Name
Type
Description
commentStringThe commentary text to append.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder DeleteCommentary() #Deletes the commentary from the current activity.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder SetX(int? x) #Sets the X coordinate for the current activity's designer settings.
Parameters
Name
Type
Description
xNullable<Int32>The X coordinate.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder SetY(int? y) #Sets the Y coordinate for the current activity's designer settings.
Parameters
Name
Type
Description
yNullable<Int32>The Y coordinate.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder CustomType(string customType) #Sets a custom type for the current activity.
Parameters
Name
Type
Description
customTypeStringThe custom type.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.
IActivityBuilder Ref(out ActivityDefinition activityDefinition) #Gets the current activity definition.
Parameters
Name
Type
Description
activityDefinitionActivityDefinitionThe output activity definition.
Returns
Type
Description
IActivityBuilderThe current IActivityBuilder instance.