This repo contains NBility-business-capabilities model version 2.2 in Archi format. The model is built using Archi.
The model can be viewed online.
To contribute to the LF Energy Archimate models you need Archi.
- Download and install the latest version of Archi from https://www.archimatetool.com/download/
-
Download the most recent version of coArchi plug-in zip file from the Archi plugins page.
-
In Archi, select "Manage Plug-ins..." from the main Help menu. From the Plug-ins Manager window, select "Install New..." and select the coArchi plug-in zip file. You may need to restart Archi to activate the plug-in. Please ensure the plug-in version supports the installed version of Archi.
- If your plug-in installation was successful, the [Collaboration] menu item should be visible appear on the application menu in Archi after restarting Archi.
- Log onto your GitHub Account at GitHub.com or create a GitHub account at GitHub.com
- To configure Archi for Github integration you would need to create a Personal Access Token (PAT) from your user account. For a detailed overview of the process you can visit https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
Alternatively, you can follow the steps below:
- Select [Settings] from your account menu (look for the avatar at the right-top of the page)
- Select [Developer settings] from the menu on the left-hand of the page
- Select [Personal access tokens] and then [Tokens (classic)]
- Select [Generate new token] and then [Generate new token (classic)]
- Enter your token name, set the token expiry and select the [repo] scope for the token
- Click [Generate token]
- Copy the token from the screen and store it securely for configuration purposes. IMPORTANT: YOU CANNOT RETRIEVE THE TOKEN AFTER IT HAS BEEN GENERATED AND DISPLAYED ON THIS PAGE. IF YOU LOOSE IT YOU WILL NEED TO GENERATE A NEW TOKEN.
Once you have configured Archi and coArchi, and generated your Github Personal Access Token (PAT) you will be able to import the Nbility model into archi.
- In Archi, select [Import Remote Model to Workspace] from Collaboration menu. You may need to provide Archi a master password to unlock this feature. IMPORTANT: YOU CANNOT RETRIEVE THE MASTER PASSWORD AFTERWARDS. IF YOU LOOSE IT YOU MAY WILL NEED TO REINSTALL ARCHI.
- In the Add Remote Model modal, provide the following information:
Field | Description |
---|---|
URL | The full web URL of the repo: https://github.com/username/reponame.git |
User Name | Your Github user name |
Password | The Github Personal Access Token (PAT) you generated earlier |
It is possible that you could use your GitHub credentials as-is in the screen. However, it is recommended that you enable 2FA on your Github account to protect access to the repo. In this case you will only be able to log onto Github from Archi using the Github Personal Access Token (PAT).
To obtain the repo URL, you can copy of from the Clone address:
- In Archi, select [Toggle Collaboration Workspace] and [Toggle Branches View] from the Collaboration menu. The Workspace and Branch windows will be docked within Archi. Archi/coArchi supports repository branches.
The Collaboration Workspace is used to navigate between different models and individual branches checked out while the Branches View provide the ability to manipulate branches within the selected model.
IMPORTANT: To ensure that the local repository remains synchronized with the upstream repository and to prevent overwriting any changes made since the last pull from the server, it is crucial to refresh the model from GitHub before applying any modifications. Regular refreshs of the model not only maintain alignment with the upstream repository but also mitigate the risk of merge conflicts.
- To refresh your local copy of the model, open the model / branch from the Collaboration Workspace and select [Refresh Model] from the Collaboration application menu.
Alternatively, you can - in archi - select [Toggle Collaboration Workspace] from the Collaboration application menu and refresh Model there.
To protect the integrity of the main branch and avoid overwriting updates from someone else, it is recommended to create a branch for each new piece of work. Branches could be named by feature_[topic name] or fix_[topic name]. Branches can be created either through the coArchi plugin or via Github.com.
- In Archi, select [Toggle Branches View] from the Collaboration menu.
- In Branches Workspace, click on the [Add branch] icon.
- Select [Add branch and checkout]. This will create the local topic branch and set it as the active branch. This action won't create the upstream branch (on Github server yet).
- The final step is to publish the new topic branch. This will make the new topic branch available on GitHub.co. To publish your new topic branch, select [Publish changes] from the Collaboration menu.
- To ensure that your new topic branch have been successfully published, you can verify by visiting your topic branch on https://github.com/NBility-Model to see if your new topic branch appears in the specific repository you've worked on.
- In Archi, select [Toggle Branches View] from the Collaboration menu.
- In archi, right click on the branch you like to switch to and click on [Switch branch].
- To commit your latest changes, select [Commit changes] from the Collaboration menu.
- Enter your user details and a commit message. By committing changes you create a local snapshot of the repository into a single package. IMPORTANT: This does not upload the changes to the upstream branch, but only create a local packaged copy.
- The final step is to publish the committed package back to the upstream repository. This will insert the last committed package into the upstream branchat GitHub.com. To publish your latest changes, select [Publish changes] from the Collaboration menu.
- To ensure that your changes have been successfully committed and published, you can verify by visiting https://github.com/NBility-Model to see if your commit appears in the specific branch you've worked on.
On regular intervals all committed and published branches need to be merged into the main branch which will trickle down into all subsequent branches.
- Log onto your GitHub Account at GitHub.com
- In https://github.com/NBility-Model, create a Github pull request from your topic branch on by clicking on the button [Compare & Pull Request].
- Add a title and description to your pull request. To finalize your pull requestion, click on the button [Create pull request].
-
Pull requests will be reviewed by one of the maintainers of NBility Model who may discuss, offer constructive feedback, request changes, or approve the work.
-
Upon receiving the sign-off of one of the maintainers of NBility Model you may merge your changes, or if you do not have permission to do that, you may request a maintainer to merge it for you.
This project is licensed Creative Commons Attribution 4.0 International Public License (CC-BY-4.0) - see LICENSE for details.
Please read [CONTRIBUTING.md] for details on the process for submitting pull requests to us.
Please read [SUPPORT.md] for how to connect and get into contact with the NBility-business-capabilities model project