| Syntax |
|
| Documentation | $backgroundProcess.getUserName: Returns the user name under which the background process will be executing. This is the user name as which the background process was created.
|
| Examples | |
| $if{$backgroundProcess.inExecution{$getCurrent{bpname}{}}}{
$/* recursive template, now in backgroundprocess execution $*/
$if{$equals{0}{$random{0}{1}}}{$throw{java.lang.RuntimeException}{just testing...don't panic!}}
}
{
$set{name}{xray_$time.getUnique{}}
$backgroundProcess.create{$get{name}}{1}{$getCurrent{t}}{bpname=$get{name}&testparam1=hello&testparam2=you}
$commit{NONE}
$sleep{5000}
$begin{UPDATE}
Backgroundprocess properties: Name: $get{name} Exists: $if{$backgroundProcess.exists{$get{name}}}{Yes}{No} Delay: $backgroundProcess.getDelay{$get{name}} Error count: $backgroundProcess.getErrorCount{$get{name}} Execution count: $backgroundProcess.getExecutionCount{$get{name}} Last end: $backgroundProcess.getLastEndTime{$get{name}} Last error: $backgroundProcess.getLastError{$get{name}} Last start: $backgroundProcess.getLastStartTime{$get{name}} Parameters: $getHTMLViewable{$backgroundProcess.getParameters{$get{name}}} Template: $backgroundProcess.getTemplate{$get{name}} Created by: $backgroundProcess.getUserName{$get{name}} $backgroundProcess.remove{$get{name}} } |
|
| Group | Special |
| Minimum required transaction-mode: | NONE |
| Required scripting permission of the developer | PERMISSION_FL_BASIC |
| Minimum parameters | 1 |
| Maximum parameters | 1 |