Before you begin: Ensure that you have authentication to access the resources in the Pega
Infinity Server to list, publish, or delete components. For more
information, see Authenticating Pega Infinity Server user access.
- Ensure that your default access group is mapped to the application where you
want to publish the component. If you do not use your default access group, use
the full application URL alias.
- Ensure that you can access the ruleset in which you want to publish your custom
component.
- Open your preferred terminal tool.
- Enter
npm run publish
.Note: After you publish the component, Constellation creates the
Rule-UI-Component instance with the name of the
component on the Pega Infinity
Server.
- Complete the parameter values:
- For the
component
, enter the name of the component that
you want to publish. - For the
rulesetName
, enter the name of the
ruleset. - For the
rulesetVersion
, enter the version of the
ruleset.Note: Make sure you unlock the
relevant ruleset version before you publish.
- For the
devBuild
, enter the development build that you
use for debugging.
Note: You can also preconfigure the values in
a tasks.config.json
file.
For example: {
"components-server-config": {
"server": "http://127.0.0.1:8080/prweb",
"user": "customcomponentoperator",
"password": "pwd"
"rulesetName": "TestPega-C11nGall",
"rulesetVersion": "01-01-03",
"sourceOfComponents": "Server",
"devBuild": false,
}
}
- Optional: To list your custom components and ensure that your component is displayed on
the list, run the
npm run list
command.
Result: The component publication is complete and application
developers can now use the component in the authoring view of App Studio. The component uses the following naming
convention:
<organization>_<library>_<component name>
Note: In some cases, the preview of the
component might not display in App Studio. However, you can still use the
component.