custom workflow build build error | Community
Skip to main content
manikanthar1295
Level 5
May 6, 2021
Solved

custom workflow build build error

  • May 6, 2021
  • 1 reply
  • 970 views

Hi Team,

i have written custom workflow and started building the code.

but while building cod i am getting error like below

 

Class com.btr.bck.workflow.core.wfprocess.customWorkFlow is not assignable to specified service com.adobe.granite.workflow.exec.Workflow
[ERROR] Error(s) found in bundle configuration

 

Any suggestion to solve this

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by MarkusBullaAdobe

Hi @manikanthar1295!

Could you please share the source code of your custom workflow?
Without that it's quite hard to give advice.

 

A first shot into the dark:

  • Does your workflow step class have an according @Component annotation?
  • What service class is the component assigned to (e. g. service = WorkflowProcess.class)?
  • Does your workflow step class implement that assigned class (e. g. public class MyWorkflowStep implements WorkflowProcess)?
  • Are you importing the correct assigned class (e. g. import com.adobe.granite.workflow.exec.WorkflowProcess)?

1 reply

MarkusBullaAdobe
Adobe Employee
MarkusBullaAdobeAdobe EmployeeAccepted solution
Adobe Employee
May 6, 2021

Hi @manikanthar1295!

Could you please share the source code of your custom workflow?
Without that it's quite hard to give advice.

 

A first shot into the dark:

  • Does your workflow step class have an according @Component annotation?
  • What service class is the component assigned to (e. g. service = WorkflowProcess.class)?
  • Does your workflow step class implement that assigned class (e. g. public class MyWorkflowStep implements WorkflowProcess)?
  • Are you importing the correct assigned class (e. g. import com.adobe.granite.workflow.exec.WorkflowProcess)?
manikanthar1295
Level 5
May 6, 2021

Hi markus_bulla_adobe,

 

Thanks for your quick response.

 

I found root cause for the issue 

 instead of service = WorkflowProcess.class I have user service Workflow.class.

I have corrected now its building