Pause
|
---|
Properties
| Label of the symbol within the process diagram |
| Pause duration Possible values:
|
To define a pause duration, double-click the Pause
component or click on Duration
>
Dynamically Parameterizing the Pause Component
The Pause
component can also be parameterized dynamically using its technical parameters sleep_time
and sleep_until
.
Dynamic parameterization via
sleep_time
In the following example, thePause
component is parameterized to a pause duration of 5 seconds:Dynamical parameterization via sleep_time
XML<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:output method="xml" media-type="text/xml"></xsl:output> <xsl:template match="/"> <!-- Pause duration 5 seconds / used format "0(d):0(h):0(m):0(s).0(ms)"--> <xsl:processing-instruction name="DynamicParameter"> <xsl:text>sleep_time="0:0:0:5.0"</xsl:text> </xsl:processing-instruction> <Empty></Empty> <!-- <xsl:processing-instruction name="NoResult"></xsl:processing-instruction> --> </xsl:template> </xsl:stylesheet>
Dynamic parameterization via
sleep_until
In the following example, thePause
component is parameterized to the current date and time plus 1 minute and 15 seconds:Dynamic parameterization via sleep_until
XML<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="2.0"> <xsl:output method="xml" media-type="text/xml"></xsl:output> <xsl:template match="/"> <xsl:processing-instruction name="DynamicParameter"> <xsl:text>sleep_until="</xsl:text> <xsl:value-of select="format-dateTime(current-dateTime()+ xs:dayTimeDuration('PT0H1M15S'),'[Y0001]-[M01]-[D01] [H10]:[m01]:[s01]')"></xsl:value-of> <xsl:text>"</xsl:text> </xsl:processing-instruction> <!-- <Empty></Empty> --> <xsl:processing-instruction name="NoResult"></xsl:processing-instruction> </xsl:template> </xsl:stylesheet>