OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – Programming Questions mass action and workflow

This topic contains 5 replies, has 2 voices, and was last updated by  thinh2010 6 years, 10 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #34388

    thinh2010
    Participant

    Hi,

    I have a workflow with 3 steps. Now I want to make a mass action in datagrid to perform the workflow step. Ex I want change 10 person from step 1 to step 2. And between step 1 and step 2, I have a popup to change their property. I trying to find in forum but not found any solution.

    Do you have any idea?
    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #34389

    Mike Kudelya
    Participant

    Hi

    You can try to create your operation to change workflow step. For example how it was done in the user reset password action.

    I hope that the following files will help you:

    – This action runs the reset password mass action – ResetController.php
    ResetPasswordMassAction
    ResetPasswordActionHandler

    Unfortunately i didn’t find a way to create a popup for mass action.

    #34390

    thinh2010
    Participant

    Thanks for your reply.

    But I dont understand, in ResetController.php, the function massPasswordResetAction have no call to mass action Handler.

    So I dont know how to call to my mass action handler. Could you please clear for me? Thanks.

    P/S: and what does the ‘type’ mean in datagrid_options / mass_action node in operation? I saw type: resetpassword in your example

    #34391

    Mike Kudelya
    Participant

    Here is massPasswordResetAction route and handler service.

    P/S: and what does the ‘type’ mean in datagrid_options / mass_action node in operation? I saw type: resetpassword in your example

    It is the action type.

    #34392

    thinh2010
    Participant

    Thank you,
    Now I can get the list of IDs in mass action. 1 more question is how can I change my workflow transition by Entity. My idea is get all Entities by Ids, then foreach them, and each of them, I call a function to change the workflow transition. Do you have any idea :D

    #34393

    thinh2010
    Participant

    Hi, nevermind my previous question, I found the way to do that

Viewing 5 replies - 1 through 5 (of 5 total)

The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.

Back to top