1 Reply Latest reply on Sep 15, 2014 1:40 AM by swiderski.maciej

    Domain specific process - how to declare default inputParams and output Params mapping in ".wid" file?

    sanbhat

      Chapter 21. Domain-specific Processes , in this section, it has been explained that .wid file can be created and used to have custom domain specific tasks in the process. These files allow task's properties such as name, id, default workItemHandlers, parameters etc to define. Is there any example or possibility that inputParameter association and output parameter Mapping can be defined in the same file?

       

      Example taken from jbpm-playground/WorkDefinitions.wid at master · droolsjbpm/jbpm-playground · GitHub

       

      [

          "name" : "Rest",

          "parameters" : [

              "Url" : new StringDataType(),

              "Method" : new StringDataType(),

              "ConnectTimeout" : new StringDataType(),

              "ReadTimeout" : new StringDataType(),

              "Username" : new StringDataType(),

              "Password" : new StringDataType()

          ],

         "inputParameterMappings" [ "param1" : "param2" ] ,      --> is this possible?

           "outParameterMappings" [ "param1" : "param2" ] ,   --> is this possible?

          "results" : [

              "Result" : new ObjectDataType(),

          ],

          "displayName" : "REST",

          "icon" : "defaultservicenodeicon.png"

        ]