Common Workflow Service Action for any Entity

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • murray99
    Member
    • Jan 2017
    • 57

    Common Workflow Service Action for any Entity

    Hi,
    I've read how to create a service action for workflow, but service actions seem to be Entity specific which means that I'd have to have Entity specific metadata.

    Is there a way to create a Service Action such that it is available for any Entity.

    A common Service Action for all Entities is what i'm trying to do...
    Thanks
  • gundogduyakici
    Senior Member
    • Mar 2018
    • 165

    #2
    for Workflow are available all the scopes (you can check it in data/cache/application/metadata.php 'scopes'), if it is not IgnoreList. Your custom entity can not be in this list by default

    Comment

    • tanya
      Senior Member
      • Jun 2014
      • 4308

      #3
      Hello,
      Workflow allows to create custom service actions. This example will show how this can be done for a Call entity. Step 1. Create Service class Create a file custom/Espo/Custom/Services/TestService.php if it doesn't exist and add a method: Step 2.

      in step 1 you can create one service for all entities, but
      in step 2 you need to define this action for all needed entities

      Comment

      Working...