Rule package

A rule package (*.rpk) is a compressed package, containing compiled CGA rule files (*.cgb), plus all needed referenced assets and data. Rule packages are an easy way to share procedural rules in a handy single file. For finding the package content, the rules are analyzed.

Note:
You can create very complex asset dependencies in CGA. Therefore, it cannot be guaranteed that all assets are included in every case. When in doubt, add the files manually.

Creating a rule package

Rule packages can either be stored locally on your machine or published to ArcGIS Online. See Online and Enterprise for more information.

  1. Locate the a CGA rule in the Navigator.
  2. Right-click the CGA file and choose Share As...

    The Rule Package dialog box appears.

  3. Choose Save package to file and set the file path.
    • Upload package and specify a name for the rule package
    • Save package to file: Set a file path.
  4. Check Include CGA source code to include readable text files.
  5. Click Item Description.

    You can add meta information such as a summary, tags, and a description to the rule package.

  6. Click Additional Files.

    You can remove proposed files and folders. You can also add new ones in order to enforce the packaging of specific assets.

  7. Click Sharing (ArcGIS Online only).

    You can specify with whom you want to share the rule package.

  8. Click Analyze to validate your rule package.

    If any issues are discovered, an error will be reported. You must validate and resolve all errors before you can save it to disk or share it to ArcGIS Online.

  9. Click Share to to upload or save the rule package.
Note:

Publish to ArcGIS Online:

  • If you haven't already you will be asked to sign in.
  • If the rule package already exists on the portal, it will be updated with the new version and will keep the same ID.
  • Rule packages can be uploaded to other ArcGIS portals as well. See Sharing data on a different Portal


In this topic
  1. Creating a rule package