Repackaging a modified process module

A worker that has standard Process module runtime configuration applied can be used as the basis of a new process specification.

  • Create a Process Specification that includes in its Elements list the process specification of the original worker.
  • In the new process specification options, set the name for the owner role (so that you do not simply inherit the name from the original process specification).
  • In the new process specification, copy the configured worker's configuration options to a "defaultConfig" object in the new process specification's options.

The new default config will override like-named default values set in default config by the original process specification. This means that workers created with the new specification will have the new configuration as their default, which can be overridden further.

Note that the design-time options are merged using a deep merge, but the runtime selection of configuration options is a shallow merge. Some care may be required when using this method to make sure that nested properties of overridden configuration options are not inadvertantly retained. This depends on the order of definition and evaluation of the design-time options.