Views: 3362
Last Modified: 24.01.2019
Using Variables in URL
If an action supports the [url]
tag, you can use the variables in URL's:
[url]http://{=Variable:Domain}/{=Variable:Path}[/url]
Here:
{=Variable:Domain}
and {=Variable:Path}
are the macros that resolve to the website domain and the path.
Creating a Direct Link to a Task Page
Use this link when creating a message that will prompt a user to perform a task within the context of a current business process.
[url]http://intranet_domain/company/personal/bizproc/{=Workflow:ID}/[/url]
Creating a Document View Link
This link will open a document for viewing. Use it in an e-mail message when you want to give a user a direct link to a document.
[url]{=Document:DETAIL_PAGE_URL}[/url]
Note: Expression {=Document:DETAIL_PAGE_URL}
generates the required link on condition that Detail page URL is specified correctly in the information block settings.
Time check
=if(and((intval(substr({=Template:Parameter1}, 0, 2)) >= 0), (intval(substr({=Template:Parameter1}, 0, 2)) < 25), (substr({=Template:Parameter1}, 2, 1) = ":"), (intval(substr({=Template:Parameter1}, 3, 2)) >= 0), (intval(substr({=Template:Parameter1}, 3, 2)) < 60)), {=Template:Parameter1}, "time is incorrect")
If the parameter {=Template:Parameter1}
passes the time in 24-hour format (hh:mm
, for example "21:45"), time is returned correctly. Otherwise returns "time is incorrect".
This expression ca be used for document fields, variables or template parameters.