es.caib.ibkey.bpm.sap.handler
Class CreateArchiveLinkToAlfrescoHandler

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.sap.handler.CreateArchiveLinkToAlfrescoHandler
All Implemented Interfaces:
java.io.Serializable, org.jbpm.graph.def.ActionHandler

public class CreateArchiveLinkToAlfrescoHandler
extends AbstractIndexedHandler

Passes: 1-Mirar si el document existeix a la taula BKPF. 2-Assignar l'aspecte al node del document d'alfresco. 3-Cridar la RFC de SAP: ARCHIV_CONNECTION_INSERT per a crear un archive-link 4-Cridar la RFC de SAP ZSICODE_GEX04_ARC per a realitzar l'assignació entre el archive-link i el document.

Author:
u91940
See Also:
Serialized Form

Field Summary
 
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
CreateArchiveLinkToAlfrescoHandler()
           
 
Method Summary
 void addNodeAspect(es.caib.ibkey.alfresco.ws.WebServiceFactory.WebServiceFactoryConfig config, org.alfresco.www.ws.service.content._1_0.ContentServiceSoapBindingStub contentService, org.alfresco.www.ws.model.content._1_0.Store store, org.alfresco.www.ws.model.content._1_0.Reference reference, java.lang.String aspect, java.lang.String[] property, java.lang.String[] value)
          cambia la propiedad de un nodo
protected  void asignarAspectoAlfresco(java.lang.String alfrescoUser, java.lang.String alfrescoPassword, java.lang.String _documentStoreScheme, java.lang.String _documentStoreAddress, java.lang.String _archiveId, java.lang.String _arcDocId)
           
 void execute(org.jbpm.graph.exe.ExecutionContext ctx)
          Mètode plantilla de l'execució:
protected  void freeResources(org.jbpm.graph.exe.ExecutionContext ctx)
           
 void handleExecute(org.jbpm.graph.exe.ExecutionContext ctx)
          Las subclases deben implementar este método
protected  void handleRollBack(org.jbpm.graph.exe.ExecutionContext ctx)
          Las subclases deben implementar este método para gestionar los errores
static void main(java.lang.String[] args)
           
 
Methods inherited from class es.caib.ibkey.bpm.common.handler.AbstractIndexedHandler
canSignal, 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
 

Constructor Detail

CreateArchiveLinkToAlfrescoHandler

public CreateArchiveLinkToAlfrescoHandler()
Method Detail

execute

public void execute(org.jbpm.graph.exe.ExecutionContext ctx)
             throws java.lang.Exception
Description copied from class: AbstractIndexedHandler
Mètode plantilla de l'execució:

Specified by:
execute in interface org.jbpm.graph.def.ActionHandler
Overrides:
execute in class AbstractIndexedHandler
Throws:
java.lang.Exception

handleExecute

public void handleExecute(org.jbpm.graph.exe.ExecutionContext ctx)
                   throws java.lang.Exception
Description copied from class: AbstractIndexedHandler
Las subclases deben implementar este método

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

asignarAspectoAlfresco

protected void asignarAspectoAlfresco(java.lang.String alfrescoUser,
                                      java.lang.String alfrescoPassword,
                                      java.lang.String _documentStoreScheme,
                                      java.lang.String _documentStoreAddress,
                                      java.lang.String _archiveId,
                                      java.lang.String _arcDocId)
                               throws java.lang.Exception
Throws:
java.lang.Exception

addNodeAspect

public void addNodeAspect(es.caib.ibkey.alfresco.ws.WebServiceFactory.WebServiceFactoryConfig config,
                          org.alfresco.www.ws.service.content._1_0.ContentServiceSoapBindingStub contentService,
                          org.alfresco.www.ws.model.content._1_0.Store store,
                          org.alfresco.www.ws.model.content._1_0.Reference reference,
                          java.lang.String aspect,
                          java.lang.String[] property,
                          java.lang.String[] value)
                   throws java.lang.Exception
cambia la propiedad de un nodo

Parameters:
store -
reference -
mime -
encoding -
Throws:
es.caib.ibkey.alfresco.ws.InternalErrorException
java.lang.Exception

freeResources

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

handleRollBack

protected void handleRollBack(org.jbpm.graph.exe.ExecutionContext ctx)
Description copied from class: AbstractIndexedHandler
Las subclases deben implementar este método para gestionar los errores

Specified by:
handleRollBack in class AbstractIndexedHandler

main

public static void main(java.lang.String[] args)


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