Inspect and Edit Datastore Values
A guide explaining how to inspect and edit datastore values.
Adding a datastore from a file
A guide explaining how to add datastore from a file.
PublishCommandsLocal
Publishing Commands Table of Contents Local Publish Maven Local Publish Maven mvn install:install-file -Dfile=your-downloaded-file.jar -DgroupId=org.example -DartifactId=example-commands -Dversion=1.0.0 -Dpackaging=jar Last updated 2024-01-24 15:18:34 +0100
CreatingMetaJars
Creating MetaJars In order to open the command in the PAK editor, a JAR file must be created. This can be done in three different ways: You can create the JAR by executing the gradle MetaJar command in the terminal. Figure 1. gradle metaJar (Terminal) Or you can navigate to the build.gradle file and execute […]
JavaCommandOverloading
Overloading of command @JavaCommandService public class CommandClass { […] public String myCommand(int myIntReadVariable, String myStringReadVariable) { (1) return „hello“; } public int myCommand(String myReadVariable) { (2) return 42; } } Last updated 2024-01-24 15:18:34 +0100
JavaCommandAllMethods
Processing of multiple commands within one class @JavaCommandService (1) public class CommandClass { @Service (2) private ICredentialRequester credentialRequester; public CommandClass(final ICredentialRequester credentialRequester) { this.credentialRequester = credentialRequester; } public void myCommand1(String str1, String str2) { (3) int strLength = str1.length() + str2.length(); } @Deprecated (4) public int myCommand2(String myReadVariable) { (5) return 42; } } Last […]
JavaCommandOneMethod
Processing of only one command within one class @JavaCommandService (1) public class CommandClass { @LiteService (2) private ICommandRestService restService; public CommandClass(final ICommandRestService restService) { this.restService = restService; } /** * This is the workflowDocumentation for my command * * @param myReadVariable Actual docu of my variable (3) * @param noReadVariable This is the documentation for […]
SampleCommandMeta
CommandMeta corresponding to previously defined command { „deprecated“: false, „group“: „myCommandGroup“, „id“: „stimuli.pkg5.CommandClass#myCommandByStringAndString“, „increment“: 0, „interpreter“: „de.asap.pak.jlcint.pakbridge.JavaServiceInterpreter“, „liteServices“: [ { „id“: „de.asap.pak.core.services.api.ICommandRestServices“, „key“: „restService“, „name“: „ICommandRestService“ } ], „major“: 2, „mappings“: [ { „documentation“: „Actual docu of my variable“, „isAllowedValuesSuggestion“: false, „key“: „myReadVariable“, „mandatory“: false, „scope“: „READ“, „type“: „STRING“ }, { „documentation“: „This is the […]
CommandMeta CommandMapping
Table of Contents Command Meta – Command Mappings Command Meta – Command Mappings The command mappings are part of the command meta and contain more information on every datastore variable defined by a command. Some fields may not be present if their value was not set, e.g. in case no information is present to fill […]
CommandMeta Service
Table of Contents Command Meta – Required Services Command Meta – Required Services Commands can require services to function. These services are also defined in the command meta and have the following property fields. Field name Description Example id Fully qualified name of the class of the service de.asap.pak.adapter.codebeamer.api.ICodebeamerAdapter key The datastore key if the […]