$backgroundProcess.getTemplate

Returns the template name the background process is executing upon start.
Syntax
    $backgroundProcess.getTemplate{background_process_name}
Documentation$backgroundProcess.getTemplate:
Returns the template name holding the code the background process will execute upon start. This template name is given as parameter 3 to $backgroundProcess.create.
    Paramter:
      1 - background process name
    Returns:
      The template name.
    Throws:
      IllegalArgumentException if the background process doesn't exist.
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}}
$backgroundProcess.remove{$get{name}} }
GroupSpecial
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters1
Maximum parameters 1