Skip to content

Commit

Permalink
Remove cronString from ServiceRun.xml, has not been supported since 2…
Browse files Browse the repository at this point in the history
…016 anyway
  • Loading branch information
jonesde committed Jun 9, 2022
1 parent a84d30a commit ec96882
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions base-component/tools/screen/Tools/Service/ServiceRun.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ along with this software (see the LICENSE.md file). If not, see
<actions>
<script>
org.moqui.context.ExecutionContext ec = context.ec
if (cronString) {
ec.service.schedule().name(serviceName).parameters(context).cron(cronString).call()
} else {
serviceResults = ec.service.sync().name(serviceName).parameters(context).call()
}
serviceResults = ec.service.sync().name(serviceName).parameters(context).call()
if (serviceResults) {
StringBuilder sb = new StringBuilder("Service Run Results:\n")
for (def resultEntry in serviceResults) sb.append("==> ${resultEntry.key}: ${resultEntry.value?.toString()}\n")
Expand Down Expand Up @@ -65,8 +61,10 @@ along with this software (see the LICENSE.md file). If not, see
<auto-fields-service service-name="${serviceName}" include="in" field-type="edit"/>
<field name="submitButton"><default-field title="Run Service"><submit/></default-field></field>

<!-- no longer supported, has not been supported since Quartz Scheduler was removed in 2016
<field name="cronString"><default-field tooltip="Enter a cron string to schedule instead of running immediately">
<text-line size="20"/></default-field></field>
-->
</form-single>
</widgets></section>
</widgets>
Expand Down

0 comments on commit ec96882

Please sign in to comment.