krysalis-sandbox/workflow/src/java/org/krysalis/workflow/action LogAction.java,1.1,1.2

[email protected]
Newsgroups gmane.comp.krysalis.sandbox
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/krysalis-sandbox/workflow/src/java/org/krysalis/workflow/action
In directory sc8-pr-cvs1:/tmp/cvs-serv31230/src/java/org/krysalis/workflow/action

Modified Files:
	LogAction.java 
Log Message:
Fixing role configuration.
Using configuration class instead of parameters for actions
and conditions.


Index: LogAction.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-sandbox/workflow/src/java/org/krysalis/workflow/action/LogAction.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** LogAction.java	15 Mar 2003 18:44:37 -0000	1.1
--- LogAction.java	17 Mar 2003 10:39:16 -0000	1.2
***************
*** 2,14 ****
  
  import org.apache.avalon.framework.logger.AbstractLogEnabled;
! import org.apache.avalon.framework.parameters.Parameters;
  
  import org.krysalis.workflow.*;
  
! public class GrantPermissionAction extends AbstractLogEnabled implements WorkFlowAction
  {
!   public void perform(WorkFlowState state, WorkFlowEvent event, Parameters params)
    {
!     getLogger.debug("LogAction ....");
    }
  }
--- 2,21 ----
  
  import org.apache.avalon.framework.logger.AbstractLogEnabled;
! import org.apache.avalon.framework.configuration.Configuration;
! import org.apache.avalon.framework.configuration.ConfigurationException;
  
  import org.krysalis.workflow.*;
  
! public class LogAction extends AbstractLogEnabled implements WorkFlowAction
  {
!   public void perform(WorkFlowState state, WorkFlowEvent event, Configuration config)
    {
!     try
!     {
!       if (config.getAttribute("message", null)!=null)
!         getLogger().debug(state.getResource()+" : "+config.getAttribute("message"));
!     } 
!     catch (ConfigurationException ce)
!     {}
    }
  }




-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.