Interface IBaseActionClientHandlerNode<TData extends BaseActionProps>
- Type Parameters:
TData- Type of the node's properties model.
- All Superinterfaces:
ICustomParametersUpdateable, IElementHandler<TData, WorkflowNode>, IExecutionResultDescriptor, INodeHandler<TData>, IRefinedExecutionResultDescriptor<TData>, IResourceBundleLocator, IWorkflowElementTypeProviding, IWorkflowNodeFlowAnalyzer<TData>, IWorkflowNodeTypeProviding
- All Known Subinterfaces:
IDefaultClientHandlerNode<TData>, IPluginActionNodeHandler<TData>
- All Known Implementing Classes:
APluginActionNodeHandler
public interface IBaseActionClientHandlerNode<TData extends BaseActionProps>
extends INodeHandler<TData>
Mixin for nodes that wish to register the default client-side action handlers.
- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
-
Field Summary
Fields inherited from interface IElementHandler
CURRENT_HANDLER_VERSION -
Method Summary
Modifier and TypeMethodDescriptiondefault EBaseActionViewTypeDeprecated.default IResourceDescriptorgetCascadingStyleSheet(Locale locale, boolean devMode) Retrieves the CSS resources required by elements of this kind, when this node is displayed in the workflow designer.default IResourceDescriptorgetJavaScript(Locale locale, boolean devMode) Retrieves the JavaScript resources required by elements of this kind.default booleanDeprecated.default booleandefault booleandefault booleandefault booleanMethods inherited from interface ICustomParametersUpdateable
updateCustomParamsMethods inherited from interface IElementHandler
extractDescription, extractName, extractSearchTerms, getCascadingStyleSheet, getDataModelClass, getDisplayLabel, getElementSummaryModel, getElementSummaryXhtml, getFastJsonConverter, getFilterCriteriaForEntities, getFilterCriteriaForObjects, getHelpPageLocation, getJavaScript, getPropertiesViewXhtml, getResourceBundle, getVersion, isAvailable, isHasUserVisibleName, readEntityReferences, readObjectReferences, readPlaceholders, validateGlobal, validateLocal, writeEntityReferences, writeObjectReferences, writePlaceholdersMethods inherited from interface IExecutionResultDescriptor
getAlwaysValueDescriptor, getAttachmentValueDescriptor, getCurrentAttachmentValueDescriptor, getCurrentFileValueDescriptor, getCurrentValueDescriptor, getErrorValueDescriptor, getErrorValueDescriptors, getFileValueDescriptor, getSoftErrorValueDescriptor, getSoftErrorValueDescriptors, getSuccessValueDescriptorMethods inherited from interface INodeHandler
execute, getBpmnModeler, getLocalizedTypeName, getNodePrototypes, getPropertiesBeanClass, getRelatedNodeTypes, getSupportedControlTransferTypes, isCreateProtocolEntryAfterExecution, isCreateProtocolEntryAfterExecution, isReplacePlaceholderBeforeExecutionMethods inherited from interface IRefinedExecutionResultDescriptor
getAlwaysValueDescriptor, getAlwaysValueDescriptor, getAttachmentValueDescriptor, getAttachmentValueDescriptor, getCurrentAttachmentValueDescriptor, getCurrentAttachmentValueDescriptor, getCurrentFileValueDescriptor, getCurrentFileValueDescriptor, getCurrentValueDescriptor, getCurrentValueDescriptor, getErrorValueDescriptor, getErrorValueDescriptors, getFileValueDescriptor, getFileValueDescriptor, getSoftErrorValueDescriptor, getSoftErrorValueDescriptors, getSuccessValueDescriptor, getSuccessValueDescriptorMethods inherited from interface IWorkflowElementTypeProviding
getTypeMethods inherited from interface IWorkflowNodeFlowAnalyzer
createFlowGraph
-
Method Details
-
getActionViewType
Deprecated.- Returns:
- View type to use for rendering the node in the workflow flowchart. Defaults to
EBaseActionViewType.STANDARD.
-
getCascadingStyleSheet
default IResourceDescriptor getCascadingStyleSheet(Locale locale, boolean devMode) throws URISyntaxException, MalformedURLException Description copied from interface:IElementHandlerRetrieves the CSS resources required by elements of this kind, when this node is displayed in the workflow designer. The CSS is added globally to the document - make sure to use unique class names. We recommend you keep to the conventions as laid out by BEM.- Specified by:
getCascadingStyleSheetin interfaceIElementHandler<TData extends BaseActionProps, WorkflowNode>- Parameters:
locale- The current language of the workflow designer. You can use this parameter to include localized message in the script.devMode-trueif the application is started in development mode. May be used to deliver uncompressed files with an inline source maps for development.- Returns:
- The resource descriptor for the required CSS files. When no CSS resource is required, you may return
either
EmptyResourceDescriptor.INSTANCEornull. - Throws:
URISyntaxException- This exception is declared for convenience. Usually you want to create a new URI from a fixed path that is known to exist. In case this exception is thrown, the resource will not be loaded and an appropriate error is shown to the user.MalformedURLException- This exception is declared for convenience. You may want to create a URI from a fixed URL. In case this exception is thrown, the resource will not be loaded and an appropriate error is shown to the user.
-
getJavaScript
default IResourceDescriptor getJavaScript(Locale locale, boolean devMode) throws URISyntaxException, MalformedURLException Description copied from interface:IElementHandlerRetrieves the JavaScript resources required by elements of this kind.The JavaScript code is loaded automatically by the flowchart and executed in a local function scope. The variable
Flowchartis made available in that scope and contains the public client-side API of the flowchart. The JavaScript must (synchronously!) register the appropriate element handler either via a call toFlowchart.registerNode(nodeType: string, nodeHandler: Object): void; Flowchart.registerTrigger(triggerType: string, triggerHandler: Object): void;
See the TypeScript declaration file shipped in the NPM modulefc-workflow-flowchartfor an exact description of the node and trigger handler object. It also contains all available methods exposed on theFlowchartobject. We recommend you build your plugin against the declaration file to prevent errors when updating the formcycle version (removed or deprecated methods etc.)- Specified by:
getJavaScriptin interfaceIElementHandler<TData extends BaseActionProps, WorkflowNode>- Parameters:
locale- The current language of the workflow designer. You can use this parameter to include localized message in the script.devMode-trueif the application is started in development mode. May be used to deliver uncompressed files with an inline source maps for development.- Returns:
- The resource descriptor for the required JavaScript files. When no CSS resource is required, you may
return either
EmptyResourceDescriptor.INSTANCEornull. - Throws:
URISyntaxException- This exception is declared for convenience. Usually you want to create a new URI from a fixed path that is known to exist. In case this exception is thrown, the resource will not be loaded and an appropriate error is shown to the user.MalformedURLException- This exception is declared for convenience. You may want to create a URI from a fixed URL. In case this exception is thrown, the resource will not be loaded and an appropriate error is shown to the user.
-
isAlwaysCompletesAbruptly
Deprecated.- Returns:
trueif this action always completes abruptly,falseotherwise. Used for the client-side flowchart view to hide outgoing flow lines.falseif this action either always completes normally (empty statement), always completes abruptly (return or throw statement), or some completes normally and sometimes abruptly (business action that may fail). Defaults tofalse.
-
isCanCompleteAbruptlyByReturning
default boolean isCanCompleteAbruptlyByReturning()- Returns:
trueif it is possible that this action can issue a return statement when executed.- Since:
- 8.1.0
-
isCanCompleteAbruptlyByThrowing
default boolean isCanCompleteAbruptlyByThrowing()- Returns:
trueif it is possible that this action can throw an exception when executed. This should be true for most normal actions, as there is always the potential for business logic to fail. Can befalsefor actions that, for example, represent a simple return statement that cannot fail.- Since:
- 8.1.0
-
isCanCompleteNormally
default boolean isCanCompleteNormally()- Returns:
trueif it is possible that this action can complete normally when executed. This should be true for most normal actions. Can befalsefor actions that, for example, represent a throw or return statement, or an end point in the workflow.- Since:
- 8.1.0
-
isSelectable
default boolean isSelectable()- Returns:
- Whether nodes of this type are selectable. When they are not, they will not be selected automatically. By
default, this checks whether
IElementHandler.getPropertiesViewXhtml()is non-null.
-
isCanCompleteNormally(),isCanCompleteAbruptlyByThrowing(),isCanCompleteAbruptlyByReturning().