java - AutomatedWorkflowActionException: Incorrect type defined for automated workflow in Hybris -
i working on workflow in hybris. created workflow template respective workflow actions , decisions. if using admincockpit , performing actions. workflow working fine.
but want perform corresponding actions through hmc now. suppose action1 assigned user a. user login through hmc , check inbox. can accept or decline workflow action there.
when performing workflow actions through hmc, getting error :
de.hybris.platform.workflow.jalo.automatedworkflowactionexception: incorrect type defined automated workflow. containercreationjob should implement de.hybris.platform.workflow.jalo.automatedworkflowtemplatejob[hy--1]
code :
import de.hybris.platform.workflow.jobs.automatedworkflowtemplatejob; public class abstractordercreationjob implements automatedworkflowtemplatejob { // code }
can dig error. please me solve prob.
i faced same issue. whenever performing actions through admincockpit, de.hybris.platform.workflow.jobs.automatedworkflowtemplatejob
interface respective perform(final workflowactionmodel action)
action.
if try perform same task through hmc, deprecated de.hybris.platform.workflow.jalo.automatedworkflowtemplatejob
interface. in case of hmc have implement deprecated automatedworkflowtemplatejob. , deprecated interface asking workflowaction
class override perform method. idea convert obeject class model using modelservice
.
what have ..
implemented deprecated
automatedworkflowtemplatejob
in automated job class.import de.hybris.platform.workflow.jalo.automatedworkflowtemplatejob; import de.hybris.platform.workflow.jalo.workflowaction; import de.hybris.platform.workflow.jalo.workflowdecision; public class xyzjob implements automatedworkflowtemplatejob { @override public workflowdecision perform(final workflowaction action) { //suppose want order final workflowactionmodel workflowactionmodel = modelservice.get(action); final ordermodel order = getattachedorder(workflowactionmodel); ........ more code .......... } }
like can work on depreciated
automatedworkflowtemplatejob
. won't giveincorrect type defined automated workflow
error. , can perform same actions through hmc also.
hope you. luck!
Comments
Post a Comment