Last active
August 29, 2015 14:00
-
-
Save Flozi95/11176141 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sample script for demonstrating how to use the Extended Expression Formatter | |
* to insert the result of a custom procedure into the expression string. | |
* | |
* This script shows how to insert a list of resource names, if any contains the name of your town. | |
* It is designed to run within the OperationPrinter job. | |
* | |
* Please play around. The best way to edit this script is to drag it onto Visual Studio, | |
* so you get as much of IntelliSense as possible. | |
* | |
* ---------- ATTENTION ---------- | |
* | |
* PLEASE KEEP IN MIND that the formatter caches generated script assemblies for efficiency. | |
* THEREFORE you MUST restart the service in order for changes to take effect. | |
* When developing these scripts, we recommend using the ServiceConsole for easier editing. | |
* | |
*/ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using AlarmWorkflow.Shared.Core; | |
public class Script | |
{ | |
public static string Function(object graph) | |
{ | |
var op = (Operation)graph; | |
return op.GetCustomData<string>("Einsatzort Ortsteil"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment