org.imixs.workflow.plugins
Class RulePlugin

java.lang.Object
  extended by org.imixs.workflow.plugins.AbstractPlugin
      extended by org.imixs.workflow.plugins.RulePlugin
All Implemented Interfaces:
org.imixs.workflow.Plugin

public class RulePlugin
extends AbstractPlugin

This Plugin evalueats business rules

Version:
1.0
Author:
Ralph Soika

Field Summary
 
Fields inherited from class org.imixs.workflow.plugins.AbstractPlugin
ctx
 
Fields inherited from interface org.imixs.workflow.Plugin
PLUGIN_ERROR, PLUGIN_OK, PLUGIN_WARNING
 
Constructor Summary
RulePlugin()
           
 
Method Summary
 void close(int status)
          nothing to do
 void init(org.imixs.workflow.WorkflowContext actx)
          initalizes the script engine
static boolean isValid(org.imixs.workflow.ItemCollection documentContext, org.imixs.workflow.ItemCollection activity)
          returns true if the documentContext is valid for the current activity
 int run(org.imixs.workflow.ItemCollection adocumentContext, org.imixs.workflow.ItemCollection adocumentActivity)
          The run method evaluates if the action is valid isValid==true Next the method evaluates follow up activities
 
Methods inherited from class org.imixs.workflow.plugins.AbstractPlugin
formatItemValues, mergeMappedFieldValues, mergeVectors, replaceDynamicValues, uniqueList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RulePlugin

public RulePlugin()
Method Detail

init

public void init(org.imixs.workflow.WorkflowContext actx)
          throws org.imixs.workflow.exceptions.PluginException
initalizes the script engine

Specified by:
init in interface org.imixs.workflow.Plugin
Overrides:
init in class AbstractPlugin
Throws:
org.imixs.workflow.exceptions.PluginException

run

public int run(org.imixs.workflow.ItemCollection adocumentContext,
               org.imixs.workflow.ItemCollection adocumentActivity)
        throws org.imixs.workflow.exceptions.PluginException
The run method evaluates if the action is valid isValid==true Next the method evaluates follow up activities

Throws:
org.imixs.workflow.exceptions.PluginException

close

public void close(int status)
nothing to do


isValid

public static boolean isValid(org.imixs.workflow.ItemCollection documentContext,
                              org.imixs.workflow.ItemCollection activity)
returns true if the documentContext is valid for the current activity

Parameters:
adocumentContext -
adocumentActivity -
Returns:


Copyright © 2006-2012 Imixs Software Solutions GmbH. All Rights Reserved.