Skip to Content
author's profile photo Former Member
Former Member

Workflow Integration for Backoffice?

Hey guys,

I have created a simple workflow, which will get triggered by creating or updating any product (there are enough sample impex for this case and since it´s working in general, I won´t provide it here). I have tested it i.e. for admincockpit - everything is fine there and will work as expected. (I have provided a activationScript for triggering it)

Now the customer wants to maintain products in backoffice. So I have tried to trigger the workflow via editing and creating a new product in backoffice. My problem is very easy : Nothing will happen. No workflow will get triggered. I have several breakpoints at locations, where he should get into, but also there : no results. (i.E. scriptEvaluationService)

Is there any implementation for triggering workfows via activation script in backoffice at all? Or may there be a configuration property to enable it?

Note that I have tested the same for HMC, where it will not work completly. Workflow is created, but stucks at the very first step, which is a automatically one - the jobhandler won´t get called and status is 'PENDING'...

Thanks and greetings

Dmitrij

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2015 at 10:07 AM

    Hi

    Is there any implementation for triggering workfows via activation script in backoffice at all?

    Unfortunately, but in the Backoffice support for trigger script (and full support for workflow) will be introduced in version 6.2 hybris platform ... So, you could write your own code to start workflow (for example, you could write new createAction for adding product ... and there write your code to trigger the workflow)

    Note that I have tested the same for HMC, where it will not work completly. Workflow is created, but stucks at the very first step, which is a automatically one - the jobhandler won´t get called and status is 'PENDING'

    You should log to admincockpit (http://localhost:9001/admincockpit/index.zul) with same credential as you set for workflow and you will find there task generated by workflow ... You should finish that task, after that workflow will move forward ...

    Best Regards,

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Marek,

      thanks for your reply.

      @Interceptors Assume i have to trigger the workflow on product creation. If i would trigger the workflow in Validate/PrepareInterceptor, i would create and trigger a workflow for a product that isn't yet saved in database. When saving the workflow, the related product gets saved again - and again the Validate/PrepareInterceptor is being called.

      @AfterSaveListener Assume i have to trigger the workflow under certain conditions (e.g. a certain attribute changed). With AfterSaveListener i have no context like InterceptorContext containing this information.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.