es.caib.ibkey.bpm.conversion.handler
Class ConversionDecisionHandler

java.lang.Object
  extended by es.caib.ibkey.bpm.common.handler.IbkeyBPMLoggerTemplate
      extended by es.caib.ibkey.bpm.common.handler.LoggerDecisionHandler
          extended by es.caib.ibkey.bpm.conversion.handler.ConversionDecisionHandler
All Implemented Interfaces:
java.io.Serializable, org.jbpm.graph.node.DecisionHandler

public class ConversionDecisionHandler
extends LoggerDecisionHandler

Handler per a decidir si s'ha de convertir el document a PDF o no. En aquesta implementació, si ja és pdf, no es converteix. Si hi ha stageAnterior, s'agafa el content-type de l'stage anterior per a decidir si s'ha de convertir. Si no hi ha stage anterior, és necessari configurar el handler per tal de definir quin serà en content-type del document

Author:
u91940
See Also:
Serialized Form

Field Summary
protected  java.lang.String inputContentType
           
 
Fields inherited from class es.caib.ibkey.bpm.common.handler.IbkeyBPMLoggerTemplate
__processInstanceId
 
Constructor Summary
ConversionDecisionHandler()
           
 
Method Summary
 java.lang.String decide(org.jbpm.graph.exe.ExecutionContext ctx)
           
 java.lang.String getInputContentType()
           
 void setInputContentType(java.lang.String inputContentType)
           
 
Methods inherited from class es.caib.ibkey.bpm.common.handler.IbkeyBPMLoggerTemplate
configure, debug, error, exceptionToString, getAdminMailAdresses, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputContentType

protected java.lang.String inputContentType
Constructor Detail

ConversionDecisionHandler

public ConversionDecisionHandler()
Method Detail

decide

public java.lang.String decide(org.jbpm.graph.exe.ExecutionContext ctx)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getInputContentType

public java.lang.String getInputContentType()
Returns:
the inputContentType

setInputContentType

public void setInputContentType(java.lang.String inputContentType)
Parameters:
inputContentType - the inputContentType to set


Copyright © 2012 Direcció General de Tecnologia i Comunicacions. Govern de les Illes Balears. All Rights Reserved.