How to add workflow to package

Hello,

I make package for creating fields in existing module but I also need to add workflow to package.

How i can do that?

Ramana Raju Santhana

sidhu sidhu

  • Hi Bhavesh Bhanushali

    When you create workflows from studio for any module then those files will be created in respective custom modules folder. Move those folder and files through your package.

    Let me know for further Help.

    Best Regards

    S Ramana Raju

  • Hi Bhavesh

                        As Ramana Raju Santhana mentioned,for example if you create a workflow for the Accounts module the files will be present in the

    /custom/modules/Accounts/workflow/

                         It is not the best practise to do so as when ever you create other custom workflows in the module from ui they get updated in to the below path.If they are any previous things they get lost if you use the package.We can mostly use the code in the file preset below for debugging purposes if any.

    /custom/modules/Accounts/workflow/workflow.php file and also records get created in the workflow tables.

                         Workflows are meant to be created from the user interface and also by just moving files in the above folder i dont think we can be creating workflows-for me it dint.

    HTH

    Regards

    Sidhu

  • Bhavesh Bhanushali, answer given by Ramana Raju Santhana is correct but I think sidhu sidhu is right, you must check this first, if it replaces existing workflow file then it is not recommended to do so.

  • Hello Ramana Raju Santhana, sidhdharth gajjar,

    Thanxs for the Reply i will try.