Class DownloadFileWorkitemHandler

  • All Implemented Interfaces:
    org.kie.api.runtime.process.WorkItemHandler

    @Wid(widfile="DropboxDownloadFileDefinitions.wid",
         name="DropboxDownloadFile",
         displayName="DropboxDownloadFile",
         defaultHandler="mvel: new org.jbpm.process.workitem.dropbox.DownloadFileWorkitemHandler(\"clientIdentifier\", \"accessToken\")",
         documentation="dropbox-workitem/index.html",
         category="dropbox-workitem",
         icon="DropboxDownloadFile.png",
         parameters=@WidParameter(name="DocumentPath",required=true),
         results=@WidResult(name="Document",runtimeType="org.jbpm.document.Document"),
         mavenDepends=@WidMavenDepends(group="org.jbpm.contrib",artifact="dropbox-workitem",version="7.69.0-SNAPSHOT"),
         serviceInfo=@WidService(category="Dropbox",description="Upload and download files from Dropbox",keywords="DropBox,file,files,download,document,documents",action=@WidAction(title="Upload a file to DropBox"),authinfo=@WidAuth(required=true,params={"clientIdentifier","accessToken"},paramsdescription={"Dropbox client identifier","Dropbox access token"},referencesite="https://www.dropbox.com/lp/developers")))
    public class DownloadFileWorkitemHandler
    extends org.jbpm.process.workitem.core.AbstractLogOrThrowWorkItemHandler
    • Field Summary

      • Fields inherited from class org.jbpm.process.workitem.core.AbstractLogOrThrowWorkItemHandler

        handlingProcessId, handlingStrategy, logThrownException, retries
    • Constructor Detail

      • DownloadFileWorkitemHandler

        public DownloadFileWorkitemHandler​(String clientIdentifier,
                                           String accessToken)
    • Method Detail

      • executeWorkItem

        public void executeWorkItem​(org.kie.api.runtime.process.WorkItem workItem,
                                    org.kie.api.runtime.process.WorkItemManager workItemManager)
      • abortWorkItem

        public void abortWorkItem​(org.kie.api.runtime.process.WorkItem wi,
                                  org.kie.api.runtime.process.WorkItemManager wim)