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 ..

  1. 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 ..........     }  } 
  2. like can work on depreciated automatedworkflowtemplatejob. won't give incorrect type defined automated workflow error. , can perform same actions through hmc also.

hope you. luck!


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -