Class decorator
5min
in object oriented programming, the decorator pattern is a design pattern that allows behavior to be added to an individual object, dynamically, without affecting the behavior of other objects from the same class if you wish to use the decorators provided by procesio you will need to implement the iaction interface, mycustomaction iaction \[classdecorator(name = "list sort", shape = actionshape circle, description = "sorting a list in descending or ascending order", classification = classification cat1, istestable = true, tooltip = "tooltip of the action")] \[permissions(candelete = true, canduplicate = true, canaddfromtoolbar = true)] decorators use properties that indicate whether and how the attribute is applied 1 name allows us to provide a name for the class decorator in order to internally identify it name = "list sort" 2 description allows us to give a short description of the functionality of the custom action 3 shape allows us to choose the shape of the custom action from three possible choices circle, square and diamond shape = actionshape circle images can be included inside the shape during while we upload the shape by choosing from a predefined gallery 4 classification allows us to classify the custom action according to its characteristics, for the time being all will be classified as cat1 classification = classification cat1 5\ istestable allows you to create a testing area inside the custom action where you can check the functionality manually when istestable is equal to true a new button will appear that will open a section where you can add values for testing purposes the action can be tested only if the components are added inside a side panel, if not the testaction button will not be visible 6 tooltip allows us to add a hint that will appear when you hover the cursor over the custom action 7 candelete , canduplicate and canaddfromtoolbar are permissions that allow us to choose the appropriate way we can use the custom action inside the platform if candelete is false the action can not be removed from the canvas once added if canduplicate is false we can not use ctrl + c and ctrl + v to make copies of the action on the canvas canaddfromtoolbar is false it will not be present in the toolbar custom actions can be added from inside a process in the custom actions tab by clicking the + create custom action button and uploading the nupkg file