Class DeployContractWorkitemHandler

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

    @Wid(widfile="EthereumDeployContract.wid",name="EthereumDeployContract",displayName="EthereumDeployContract",defaultHandler="mvel: new org.jbpm.process.workitem.ethereum.DeployContractWorkitemHandler(\"walletPassword\", \"walletPath\")",documentation="ethereum-workitem/index.html",category="ethereum-workitem",icon="EthereumDeployContract.png",parameters={@WidParameter(name="ServiceURL",required=true),@WidParameter(name="ContractPath",required=true),@WidParameter(name="DepositAmount"),@WidParameter(name="WaitForReceipt")},results=@WidResult(name="ContractAddress"),mavenDepends=@WidMavenDepends(group="org.jbpm.contrib",artifact="ethereum-workitem",version="7.65.0.Final"),serviceInfo=@WidService(category="Ethereum",description="Integrate with the Ethereum Blockchain app platform",keywords="Ethereum,blockchain,smart,contract,smartcontract,deploy",action=@WidAction(title="Deploy a new smart contract onto the blockchain"),authinfo=@WidAuth(required=true,params={"walletPassword","walletPath"},paramsdescription={"Wallet password","Path to the wallet file"})))
    public class DeployContractWorkitemHandler
    extends org.jbpm.process.workitem.core.AbstractLogOrThrowWorkItemHandler
    • Constructor Detail

      • DeployContractWorkitemHandler

        public DeployContractWorkitemHandler​(String walletPassword,
                                             String walletPath)
      • DeployContractWorkitemHandler

        public DeployContractWorkitemHandler​(String walletPassword,
                                             String walletPath,
                                             ClassLoader classLoader)
    • 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)
      • setWeb3j

        public void setWeb3j​(org.web3j.protocol.Web3j web3j)