Class CreatePastebinWorkitemHandler

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

    @Wid(widfile="CreatePastebin.wid",name="CreatePastebin",displayName="CreatePastebin",defaultHandler="mvel: new org.jbpm.process.workitem.pastebin.CreatePastebinWorkitemHandler(\"develKey\")",documentation="pastebin-workitem/index.html",category="pastebin-workitem",icon="CreatePastebin.png",parameters={@WidParameter(name="Title"),@WidParameter(name="Content",required=true,runtimeType="java.lang.Object"),@WidParameter(name="Format"),@WidParameter(name="Visibility"),@WidParameter(name="Author")},results=@WidResult(name="PasteURL",runtimeType="java.net.URL"),mavenDepends=@WidMavenDepends(group="org.jbpm.contrib",artifact="pastebin-workitem",version="7.64.0.Final"),serviceInfo=@WidService(category="Pastebin",description="Create new or get existing pastes from Pastebin",keywords="paste,pastebin,create",action=@WidAction(title="Create a paste on Pastebin"),authinfo=@WidAuth(required=true,params="develKey",paramsdescription="Pastebin developer key",referencesite="https://pastebin.com/api.php")))
    public class CreatePastebinWorkitemHandler
    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

      • CreatePastebinWorkitemHandler

        public CreatePastebinWorkitemHandler​(String develKey)
    • 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)