0

Libraries

  • updated 1 yr ago

Description

As an alternative to using the copy-paste-link functionality for your logicnets, you can create a library of logicnets that you want to include in multiple projects.

Use

Both copy-paste-link and the library mechanism offer the same functionality--the re-use of logicnets. Use the table below to determine which one works best for your particular needs.

 

  Copy-Paste-Link Library
Linking Type Static: During the design phase, changes you make to the referenced logicnet are reflected in your project.

After publishing, a true copy of the referenced logicnet is included in the package. If you make changes to the original logicnet, these changes will not be reflected in the published project.
Dynamic: The system loads the referenced logicnet from the published library project.

Any updates in the referenced logicnet are directly reflected without requiring the project to be republished.
Advantages During the design phase, changes in the logicnet are directly propagated without requiring the library project to be republished.

If you make a change to an item in the library that breaks something, published packages are not affected.
Upgrades to the library are automatically propagated to applications without requiring you to republish and re-install the applications.
Disadvantages If you make a change to logicnets in the library you must republish all related projects for those changes to be visible. If you make changes in the library that break something, this can affect related applications.

Create a Library Project

  1. Create a new project to serve as your library project.
  2. Create the logicnets that will live in your library.
  3. If a logicnet in your library is ready to be exposed as a public part of the library, mark it as ‘public’. To do this, go to the Details tab of your logicnet and click modify. Note: By default, logicnets are marked as ‘internal’.

  4. Save your logicnet changes and publish your library project.

Include the Library in a Client Project

Once you have created a logicnet or logicnets in your library and you want to use them in another application, you need to identify them in the other application.

  1. In the Project pane, select the project in which you want to use a library logicnet.
  2. Click modify on the project Details tab.
  3. Go to General section in the project settings and in the section libraries and click the ellipsis button (…) to open the browser for selecting your published library package.
  4. Give the library an alias.
  5. Select the logicnet in which you want to add a call to one of the logicnets exposed by the library.
  6. Select Add node > Call to add a new call node. The system opens the editor for the new call node.
  7. Go to the Call tab.
  8. Enter the alias of the library in the field for Library project. Note: This field supports auto-complete, and clicking on the dropdown button will bring up the list of library projects that are included in your project.
  9. Click the ellipsis button (…) next to the LogicNet to call field to bring up the list of logicnets exposed by the selected library. Select the logicnet you want to call.
  10. Select the project in your tree-view and click Test to verify that the system invokes the library function.


Example

Download and import the following sample projects in your workspace.

Reply Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
Like Follow
  • 1 yr agoLast active
  • 59Views
  • 2 Following

Home