org.openbp.cockpit.modeler.custommodelobjectconfigurator
Interface CustomModelObjectConfigurator


public interface CustomModelObjectConfigurator

Interface that allows for custom activity node configuration dialogs in the openBP Cockpit. The activity configurator is specified for a particular type of activity. It may display a configuration dialog that is activated on an activity node in a process in the OpenBP modeler by selecting the appropriate menu option from the context menu of the activity node.


Method Summary
 CustomModelObjectConfiguratorDescriptor checkAppliance(ModelObject mo)
          Checks if this configurator applies for the given model object
 boolean displayActivityConfigurationDialog(ModelObject mo)
          Displays the activity configuration dialog.
 

Method Detail

checkAppliance

CustomModelObjectConfiguratorDescriptor checkAppliance(ModelObject mo)
Checks if this configurator applies for the given model object

Parameters:
mo - Model object to edit
Returns:
The descriptor that specifies the popup menu option to create or null if the configurator does not apply to this type of model object

displayActivityConfigurationDialog

boolean displayActivityConfigurationDialog(ModelObject mo)
Displays the activity configuration dialog. This method will be called if the user opts to execute the configuration menu option provided by this configurator.

Parameters:
mo - Model object to edit
Returns:
true if the method has modified some property of the activity, false otherwise. In the former case, the process will be marked as 'modified'.


Copyright © 2011. All Rights Reserved.