Class CreateGistWorkitemHandler

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

    @Wid(widfile="GithubCreateGist.wid",name="GithubCreateGist",displayName="GithubCreateGist",defaultHandler="mvel: new org.jbpm.process.workitem.github.CreateGistWorkitemHandler(\"userName\", \"password\")",documentation="github-workitem/index.html",category="github-workitem",icon="GithubCreateGist.png",parameters={@WidParameter(name="Content",required=true,runtimeType="org.jbpm.document.Document"),@WidParameter(name="Description"),@WidParameter(name="IsPublic")},results=@WidResult(name="GistURL"),mavenDepends=@WidMavenDepends(group="org.jbpm.contrib",artifact="github-workitem",version="7.73.0.Final"),serviceInfo=@WidService(category="Github",description="Create Gist or list your repositories in Github",keywords="gist,github,create",action=@WidAction(title="Create a new Gist"),authinfo=@WidAuth(required=true,params={"userName","password"},paramsdescription={"Github username","Github password"},referencesite="https://github.com/")))
    public class CreateGistWorkitemHandler
    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

      • CreateGistWorkitemHandler

        public CreateGistWorkitemHandler​(String userName,
                                         String password)
    • 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)
      • setAuth

        public void setAuth​(GithubAuth auth)