Interface IPluginWorkflowNode
- All Superinterfaces:
IFCPlugin,INamedUiElement,INameProviding,IPluginGenericCustomGUI<IPluginWorkflowNodeBean>,ITransferable,Serializable
- All Known Subinterfaces:
IPluginActionNodeHandler<TData>,IPluginConditionNodeHandler<TData>
- All Known Implementing Classes:
APluginActionNodeHandler,APluginConditionNodeHandler
In case you only wish to add an action that executes some business logic, consider using
de.xima.fc.workflow.mixin.IPluginActionNodeHandler or
de.xima.fc.workflow.mixin.APluginActionNodeHandler if you do not need a custom super class. You can also use
de.xima.fc.workflow.mixin.IPluginConditionNodeHandler or
de.xima.fc.workflow.mixin.APluginConditionNodeHandler to implement a simple custom condition.
On the server side, the main method to implement is execute. On
the client side, the main method to implement is getJavaScript,
which needs to return a JavaScript file that calls Flowchart.registerNode(nodeType: string, nodeHandler:
Object) to register the client side node handler.
This plugin can be installed as both a system as well as a client plugin.
See also IPluginWorkflowElementPrototypes if you only want to provide preconfigured workflow elements
without defining a custom element type.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
Fields inherited from interface de.xima.fc.plugin.interfaces.IFCPlugin
CONFIG_FILENAMEFields inherited from interface de.xima.fc.interfaces.INamedUiElement
ATTR_DISPLAY_NAMEFields inherited from interface de.xima.fc.entities.interfaces.INameProviding
ATTR_NAME, COL_NAME -
Method Summary
Modifier and TypeMethodDescriptionINodeHandler<?>default URLThis method must return the path to the XHTML page for the custom user interface.Methods inherited from interface de.xima.fc.plugin.interfaces.IFCPlugin
getDescription, getDescription, getDisplayName, getName, initialize, initPlugin, install, shutdown, shutdown, uninstall, validateConfigurationDataMethods inherited from interface de.xima.fc.plugin.config.IPluginGenericCustomGUI
getUnmanagedBeans
-
Method Details
-
getNodeHandler
INodeHandler<?> getNodeHandler()- Returns:
- The node handler that implements all the logic required by the workflow node. This lets you customize all features available to built-in workflow nodes.
-
getXhtmlView
Description copied from interface:IPluginGenericCustomGUIThis method must return the path to the XHTML page for the custom user interface. Usually the XHTML file is part of the classpath resources of the plugin. In this case, simply return an URL to resource (jar:file:/...) like so:@Override public URL getXhtmlView() { return getClass().getResource("/path/to/view.xhtml"); }- Specified by:
getXhtmlViewin interfaceIPluginGenericCustomGUI<IPluginWorkflowNodeBean>- Returns:
- Path to the Facelet view. Must not return
null. May returnnullto indicate that no custom view is available. Whether a custom view is required depends on the type of the plugin.
-