Run behaviors and applications

Use k.Actors when an observation, twin or user needs behavior over time, or when an application must respond to messages and user actions. For instance, an author can build a form for choosing a study area and reporting results. For a new way to compute a scientific quantity, start with a k.IM model. Write a semantic model

For a behavior that belongs to a particular observation, publish its source and bind it when creating the individual. Model a storm warning in a twin

Run a behavior locally

Open Applications, Scripts and Test cases. Use Create for a template or Open for a .kactor file. Save it to reparse the source. Invalid source stays editable and its diagnostics show what to fix. With valid source and a local Runtime, compile and run from the toolbar. A run opens an agent console. Check its state and messages, send text input where the behavior expects it, and stop the individual agent when you finish.

For a standalone behavior, save and compile before using the cloud-upload action. Publication to a project needs a local Resources service and permission on the destination. Check the target document because publishing an existing identity replaces its source.

Edit a project application

  1. In Workspaces, find a saved project application targeting WEB or ANY. Choose Edit and run application locally. Modeler opens a managed working copy.
  2. Edit and save the copy, then use the synchronization action to update the project. Check for Up to date with project. Saving in the workspace source editor updates the project directly.
  3. With a local Runtime, select Internal WebView or a browser in the runner, then choose Run. Exercise an action in the form and inspect the connection console.
  4. After changing project source, stop the old run and choose Run saved application. Reconnect attaches a renderer to the same running instance and preserves its state.

Keep Modeler running while an external browser is attached. If a managed copy and the project have diverged, compare both versions before choosing which one to keep. The copy's synchronization state is separate from the project's Git publication state. Publish project changes