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

java.lang.Object
  extended by es.caib.ibkey.bpm.common.handler.IbkeyBPMLoggerTemplate
      extended by es.caib.ibkey.bpm.common.handler.LoggerActionHandler
          extended by es.caib.ibkey.bpm.common.handler.AbstractIndexedHandler
              extended by es.caib.ibkey.bpm.conversion.handler.ConversionHandler
All Implemented Interfaces:
java.io.Serializable, org.jbpm.graph.def.ActionHandler

public class ConversionHandler
extends AbstractIndexedHandler

Handler per a la conversió de documents mitjançant openOffice. Variables d'entrada al context del procés: VAR_FILTER_OPTIONS: (Opcional) opcions del conversor Variables d'entrada a l'instància del handler: formatDeSortida: (Opcional) per defecte pdf/A. (Correspon al nom del filtre de conversió) extensioDocumentSortida: (opcional) per defecte ".pdf"

Author:
u91940
See Also:
Serialized Form

Field Summary
protected  java.io.File convertedDocument
           
protected  java.io.File documentToConvert
           
 java.lang.String extensioDocumentSortida
           
 java.lang.String formatDeSortida
           
 
Fields inherited from class es.caib.ibkey.bpm.common.handler.AbstractIndexedHandler
alreadyDone, hasStageInput, inputContentType
 
Fields inherited from class es.caib.ibkey.bpm.common.handler.IbkeyBPMLoggerTemplate
__processInstanceId
 
Constructor Summary
ConversionHandler()
           
 
Method Summary
protected  void freeResources(org.jbpm.graph.exe.ExecutionContext ctx)
           
 java.lang.String getExtensioDocumentSortida()
           
 java.lang.String getFormatDeSortida()
           
 java.util.Map getVarFilterOptions()
           
 void handleExecute(org.jbpm.graph.exe.ExecutionContext ctx)
          Mètode que converteix els documents attached a pdf via OpenOffice
protected  void handleRollBack(org.jbpm.graph.exe.ExecutionContext ctx)
          Handler per a la gestió del rollback dels documents.
 void setExtensioDocumentSortida(java.lang.String extensioDocumentSortida)
           
 void setFormatDeSortida(java.lang.String formatDeSortida)
           
 void setVarFilterOptions(java.util.Map options)
           
 
Methods inherited from class es.caib.ibkey.bpm.common.handler.AbstractIndexedHandler
canSignal, execute, getAttMgr, getHandleRetry, getInputContentType, getInputObject, getMimeReg, getOutputContentType, getOutputObject, getOutputOriginalName, getOutputTag, getSignalTo, getStageActual, getStageActualName, getStageAnterior, getStgMgr, isCanSignal, setCanSignal, setHandleRetry, setInputContentType, setInputObject, setOutputContentType, setOutputObject, setOutputOriginalName, setOutputTag, setSignalTo, setStageActualName
 
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

formatDeSortida

public java.lang.String formatDeSortida

extensioDocumentSortida

public java.lang.String extensioDocumentSortida

convertedDocument

protected java.io.File convertedDocument

documentToConvert

protected java.io.File documentToConvert
Constructor Detail

ConversionHandler

public ConversionHandler()
Method Detail

handleExecute

public void handleExecute(org.jbpm.graph.exe.ExecutionContext ctx)
                   throws java.lang.Exception
Mètode que converteix els documents attached a pdf via OpenOffice

Specified by:
handleExecute in class AbstractIndexedHandler
Throws:
java.lang.Exception

handleRollBack

protected void handleRollBack(org.jbpm.graph.exe.ExecutionContext ctx)
Handler per a la gestió del rollback dels documents.

Specified by:
handleRollBack in class AbstractIndexedHandler
Parameters:
oldDocuments -
convertedDocuments -
attMgr -
Throws:
java.lang.Exception

getFormatDeSortida

public java.lang.String getFormatDeSortida()
Returns:
the formatDeSortida

setFormatDeSortida

public void setFormatDeSortida(java.lang.String formatDeSortida)
Parameters:
formatDeSortida - the formatDeSortida to set

getExtensioDocumentSortida

public java.lang.String getExtensioDocumentSortida()
Returns:
the extensioDocumentSortida

setExtensioDocumentSortida

public void setExtensioDocumentSortida(java.lang.String extensioDocumentSortida)
Parameters:
extensioDocumentSortida - the extensioDocumentSortida to set

getVarFilterOptions

public java.util.Map getVarFilterOptions()
Returns:
the varFilterOptions

setVarFilterOptions

public void setVarFilterOptions(java.util.Map options)

freeResources

protected void freeResources(org.jbpm.graph.exe.ExecutionContext ctx)
Specified by:
freeResources in class AbstractIndexedHandler


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