Skip to content

Commit

Permalink
Merge pull request #4212 from Coduz/fix-jobStepDefinitionPropertiesXm…
Browse files Browse the repository at this point in the history
…lDescriptions

🐛 [Job] Fixed JobStepDefinitionProperties description for complex object to state that also JSON is allowed
  • Loading branch information
Coduz authored Mar 7, 2025
2 parents cf4a4e2 + 7d395d2 commit 4b54cb9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public DeviceAssetWriteJobStepDefinition() {
Lists.newArrayList(
new JobStepPropertyRecord(
DeviceAssetWritePropertyKeys.ASSETS,
"XML string that defines the asset, channels and values to be written",
"XML or JSON string that defines the asset, channels and values to be written",
DeviceAssets.class.getName(),
null,
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <deviceAssets>\n <deviceAsset>\n <name>assetName</name>\n <channels>\n <channel>\n <valueType>binary</valueType>\n <value>EGVzdCBzdHJpbmcgdmFsdWU=</value>\n <name>binaryTest</name>\n </channel>\n </channels>\n </deviceAsset>\n</deviceAssets>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public DeviceCommandExecJobStepDefinition() {
Lists.newArrayList(
new JobStepPropertyRecord(
DeviceCommandExecPropertyKeys.COMMAND_INPUT,
"XML string that defines the system command to be executed",
"XML or JSON string that defines the system command to be executed",
DeviceCommandInput.class.getName(),
null,
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<commandInput>\n <command>ls</command>\n <timeout>30000</timeout>\n <runAsynch>false</runAsynch>\n</commandInput>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public DevicePackageDownloadJobStepDefinition() {
Lists.newArrayList(
new JobStepPropertyRecord(
DevicePackageDownloadPropertyKeys.PACKAGE_DOWNLOAD_REQUEST,
"XML string that defines the package download request sent",
"XML or JSON string that defines the package download request sent",
DevicePackageDownloadRequest.class.getName(),
null,
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<downloadRequest>\n <uri>http://download.eclipse.org/kura/releases/3.2.0/org.eclipse.kura.demo.heater_1.0.300.dp</uri>\n <name>heater</name>\n <version>1.0.300</version>\n <install>true</install>\n</downloadRequest>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public DevicePackageUninstallJobStepDefinition() {
Lists.newArrayList(
new JobStepPropertyRecord(
DevicePackageUninstallPropertyKeys.PACKAGE_UNINSTALL_REQUEST,
"XML string that defines the package uninstall request sent",
"XML or JSON string that defines the package uninstall request sent",
DevicePackageUninstallRequest.class.getName(),
null,
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<uninstallRequest>\n <name>heater</name>\n <version>1.0.300</version>\n <reboot>true</reboot>\n <rebootDelay>30000</rebootDelay>\n</uninstallRequest>",
Expand Down

0 comments on commit 4b54cb9

Please sign in to comment.