Image Text Slider
PAK Commands – Image Text Slider Table of Contents 1. Summary 2. Examples 1. Summary Prompts the user to select an image, described by a text. Navigating through the options in a slide-show one by one. 2. Examples Figure 1. The Command Due to simplicity, the descriptiveText input parameter will be left empty for the […]
Configurable Table
PAK Commands – Configurable Table Table of Contents 1. Summary 2. Examples 1. Summary This command lets you configure custom tables using a JSON representation. The user can then extend the table by adding new rows. 2. Examples Figure 1. The Command Due to simplicity, the descriptiveText input parameter will be left empty for the […]
Create Form
PAK Commands – Create Form Table of Contents 1. Summary 2. Examples 2.1. Minimal Command Execution 2.2. Adding Optional Fields 2.3. Adding Different Input Types 2.4. Setting initial Values 2.5. Customizing the JSON Output 2.6. A complete Example 1. Summary This command lets you create a multi form page which the user has to fill […]
Choose Value From Object
PAK Commands – Choose Value From Object Table of Contents 1. Summary 2. Examples 1. Summary This command lets the user choose a single property from a JSON object. 2. Examples Figure 1. The Command Due to simplicity, the descriptiveText input parameter will be left empty for the examples. By default, it is set to […]
Choose Search Item
PAK Commands – Choose/Search Item Table of Contents 1. Summary 2. Examples 2.1. Choose Item 2.2. Search Item 1. Summary Both commands let the user choose an item from a specified list. Search item additionally offers the functionality to search for an item by typing in the textfield. 2. Examples Example 1. The Command Due […]
Choose Date
PAK Commands – Choose Date Table of Contents 1. Summary 2. Examples 1. Summary Prompts the user with a date chooser, that can optionally be extended to include a time chooser as well. The resulting date time will be formatted according to the ISO-8601 norm. 2. Examples Figure 1. The Command Due to simplicity, the […]
buildAndRunGuideBuildGradle
build.gradle plugins { id ‚java-library‘ id ‚maven-publish‘ } ext { version = ‚1.0.0‘ pakVersion = ‚1.5.14‘ } allprojects { project.description = ‚Example Commands for PAK‘ project.group = ‚org.example‘ project.version = rootProject.ext.version repositories { mavenCentral() maven { name = ‚pak-explorer-maven‘ url ‚https://pak.asap.de/nexus/repository/pak-explorer-maven/‘ } } } subprojects { apply plugin: ‚java-library‘ apply plugin: ‚maven-publish‘ compileJava.options.encoding = ‚UTF-8‘ […]
buildAndRunGuideHelloWorld
HelloWorld.java package org.example; import de.asap.pak.jlcint.commandapi.CommandGroup; import de.asap.pak.jlcint.commandapi.FieldScope; import de.asap.pak.jlcint.commandapi.JavaCommand; import de.asap.pak.jlcint.commandapi.Persistent; import de.asap.pak.jlcint.commandapi.Run; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Sample implementation for a example command that input name and returns a simple output. * * The @JavaCommand annotation is necessary for the annotation processor to recognize this class as a command. * If this is […]
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 […]
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 […]