Cleo Communications. CUEScript Training



Similar documents
JobScheduler Web Services Executing JobScheduler commands

JobScheduler Events Definition and Processing

Microsoft Windows PowerShell v2 For Administrators

Tutorial: Building a Dojo Application using IBM Rational Application Developer Loan Payment Calculator

Data Integration through XML/XSLT. Presenter: Xin Gu

WIRIS quizzes web services Getting started with PHP and Java

RMCS Installation Guide

Slide.Show Quick Start Guide

Extending XSLT with Java and C#

MASTERTAG DEVELOPER GUIDE

Firewall Builder Architecture Overview

Course Information Course Number: IWT 1229 Course Name: Web Development and Design Foundation

AQA GCSE in Computer Science Computer Science Microsoft IT Academy Mapping

Authoring for System Center 2012 Operations Manager

Course 10978A Introduction to Azure for Developers

metaengine DataConnect For SharePoint 2007 Configuration Guide

Portals and Hosted Files

Yandex.Widgets Quick start

XSLT Mapping in SAP PI 7.1

Adam Rauch Partner, LabKey Software Extending LabKey Server Part 1: Retrieving and Presenting Data

MS 10978A Introduction to Azure for Developers

Terms and Definitions for CMS Administrators, Architects, and Developers

VIRTUAL LABORATORY: MULTI-STYLE CODE EDITOR

EPiServer Operator's Guide

Visual COBOL ASP.NET Shopping Cart Demonstration

Web Application diploma using.net Technology

Structured vs. unstructured data. Motivation for self describing data. Enter semistructured data. Databases are highly structured

JBoss Portlet Container. User Guide. Release 2.0

The full setup includes the server itself, the server control panel, Firebird Database Server, and three sample applications with source code.

Web Services Technologies

Oracle Forms Services Secure Web.Show_Document() calls to Oracle Reports

Example. Represent this as XML

This course provides students with the knowledge and skills to develop ASP.NET MVC 4 web applications.

Analytics Configuration Reference

A standards-based approach to application integration

SharePoint Integration Framework Developers Cookbook

Windows PowerShell Cookbook

NLUI Server User s Guide

10978A: Introduction to Azure for Developers

A SharePoint Developer Introduction

SimbaEngine SDK 9.4. Build a C++ ODBC Driver for SQL-Based Data Sources in 5 Days. Last Revised: October Simba Technologies Inc.

Developing, Deploying, and Debugging Applications on Windows Embedded Standard 7

What I Wish I Had Known. In my first 30 days with umbraco

ACE 2011 International

ActiveVOS Server Architecture. March 2009

How To Use Query Console

FioranoMQ 9. High Availability Guide

Programming in C# with Microsoft Visual Studio 2010

Hands-On Lab. Web Development in Visual Studio Lab version: Last updated: 12/10/2010. Page 1

Developing ASP.NET MVC 4 Web Applications

Bitrix Site Manager 4.1. User Guide

StreamServe Persuasion SP5 Document Broker Plus

PROCESSES LOADER 9.0 SETTING. Requirements and Assumptions: I. Requirements for the batch process:

ASP.NET Using C# (VS2012)

Schematron Validation and Guidance

IBM Operational Decision Manager Version 8 Release 5. Getting Started with Business Rules

Log Analyzer Reference

Drupal CMS for marketing sites

Glyma Deployment Instructions

SOFTWARE TESTING TRAINING COURSES CONTENTS

Appium mobile test automation

Developing Microsoft Azure Solutions 20532B; 5 Days, Instructor-led

IMRG Peermap API Documentation V 5.0

Visual Basic. murach's TRAINING & REFERENCE

The ADOxx Metamodelling Platform Workshop "Methods as Plug-Ins for Meta-Modelling" in conjunction with "Modellierung 2010", Klagenfurt

CrownPeak Playbook CrownPeak Hosting with PHP

Enterprise Service Bus

NewsletterAdmin 2.4 Setup Manual

Pro ASP.NET 4 CMS. Using the JET 4 Framework. Advanced Techniques for C# Developers. Apress. Alan Harris

Cache Database: Introduction to a New Generation Database

Microsoft Dynamics CRM2015 Fast Track for developers

Administrator's Guide

PC120 ALM Performance Center 11.5 Essentials

Getting Started with STATISTICA Enterprise Programming

CHAPTER 10: WEB SERVICES

Programming with the Microsoft.NET Framework Using Microsoft Visual Studio 2005 (VB)

SCADA/HMI MOVICON TRAINING COURSE PROGRAM

Deploying Cisco Unified Contact Center Express Volume 1

Iotivity Programmer s Guide Soft Sensor Manager for Android

Transition your MCPD Web Developer Skills to MCPD ASP.NET Developer 3.5 (VB)

PHP Integration Kit. Version User Guide

English. Asema.com Portlets Programmers' Manual


Pay with Amazon Integration Guide

Glassfish, JAVA EE, Servlets, JSP, EJB

CRM Developer Form

NS DISCOVER 4.0 ADMINISTRATOR S GUIDE. July, Version 4.0

RTI Routing Service. Release Notes

Developing ASP.NET MVC 4 Web Applications Course 20486A; 5 Days, Instructor-led

Certified PHP/MySQL Web Developer Course

Application Servers G Session 2 - Main Theme Page-Based Application Servers. Dr. Jean-Claude Franchitti

DITA CMS Release 4.0 (Dynamic Release Management Module): Detailed Release Notes

Introduction to Azure for Developers

Developing and Implementing Web Applications with Microsoft Visual C#.NET and Microsoft Visual Studio.NET

Data Tool Platform SQL Development Tools

WebSphere Business Monitor

TIBCO BusinessEvents Business Process Orchestration Release Notes

Silect Software s MP Author

Transcription:

Cleo Communications CUEScript Training

Introduction RMCS Architecture Why CUEScript, What is it? How and Where Scripts in RMCS XML Primer XPath Pi Primer

Introduction (cont.) Getting Started Scripting Scripting Language Using System Objects Testing and Debugging Your Script RMCS Objects Different Scripting Contexts (specialization, i post job, comm server, job server, remote server)

Introduction (cont.) Building Real world Scripts Update Changing system configuration Advanced Topics.NET objects Value cache Database extensions

RMCS Architecture

Typical Scripting Scenario Job Start Specialization Script sent with job instance item to Communication Server Script runs on Communication Server Script completes, reports back to Job Server If job complete, run post job script section

Why CUEScript? Appropriate system objects are exposed in each context Scalability allows the creation of new.net objects XML is a standard. Readability. Embedding logic and data. Easy to sign. Self referential and self modifying

Scripts in RMCS Scripts page Adding/modifying script (copy/paste) Import/export p of scripts Job definition (selecting a script) The Interactive job definition

XML Primer Confusion about XML XML is NOT a programming language HTML is simply an implementation of XML, it s not XML What is XML? Simply a text file or text fragment A way of structuring data with markup

XML Elements <?xml version="1.0"?> <note> <to>tove</to> <from>jani</from> <heading>reminder</heading> <body>don't forget me this weekend!</body> </note>

XML Attributes <bookstore> <book category="children"> <title>harry Potter</title> <author>j JK. Rowling</author> <year>2005</year> <price>29.99</price> 99 i </book> </bookstore>

XML Comments You can insert comments in an XML document using <! and > <?xml version="1.0"?> <note> <! This is a note to my friend > > <to>tove</to> <from>jani</from> </note>

Other XML Oddities Empty Elements Processing Instructions <?action page break= true center= false?> Entities < > & " &apos; CDATA Section

XML Namespaces <root> <h:tablexmlns:h="http://www.w3.org/tr/html4/"> l h / /h l /" <h:tr> <h:td>apples</h:td> <h:td>bananas</h:td> </h:tr> </h:table> <f:table xmlns:f="http://www.w3schools.com/furniture"> com/f re"> <f:name>african Coffee Table</f:name> <f:width>80</f:width> <f:length>120</f:length> </f:table> </root>

XML Documents as Nodes <table tbl instock= true lastship= 3/10/2010 > <name>coffee Table</name> <width>80</width> <length>120</length> </table>

XML Documents as Nodes

XPath Primer XPath is a complex specification for querying one or more nodes from an XML tree The result of an XPath expression can be a single node, a list of nodes, a string value, boolean value, or numeric value CUEScript can use XPath to locate script nodes and modify those nodes

XPath Expressions /project/title //participant //participants/* p / //item[@val= medium ] //solutions[item[@val= medium ]] medium]]

Getting Started with CUEScript Find an Editor CUEScript Editor XML Professional/Free Editors (XML Spy, Exchanger XML, etc.) Visual Studio Plain text editor

Hello World <module xmlns="http://www http://www.cuesoft.com/cuescript/1.0 com/cuescript/1 0"> <script> <output> </output> </script> </module> Hll Hello World!

Hello World (RMCS version) <module xmlns="http://www http://www.cuesoft.com/cuescript/1.0 com/cuescript/1 0"> <script> <expr> $log.info( Hello ll World! ); </expr> </script> </module>

Using format <module xmlns="http://www.cuesoft.com/cuescript/1.0"> <script name= main > main <expr> $greeting := Hello ; $log.info( format( {0} World!, $greeting) ); </expr> </script> </module>

Script Syntax module tag as a placeholder, define the namespace script tag as starting points expr tag as place to put expressions

Script Syntax - Variables var tag to define a variable Variables can be defined on first usage in the expr tag Data Types String Numbers Node Lists Arrays

Script Syntax Flow Control if/else switch for/while/repeat / foreach continue/break

Script Syntax Extras Functions Library includes Embedded expressions

Exception Handling <try> <catch> $exception variable Named exception <raise>/<reraise> reraise <finally> FatalException

$system Object Sleep Wait CreateNetObject Invoke

$document Object A variable referencing the script itself Can operate or query the document object model Refer to ScriptDocument in CUEScript.chm for more information

Testing/Debugging Principles Reuse existing scripts Baby steps Using the $log object Build and use library functions Test and debug using Job Server Test and debug using Communication Server Test and debug using Remote Server

Specialization Walk through Interactive script Output of special script section is passed through Objects available during specialization ($scriptcontext, $log, $appliance, $database, $refdatabase)

Post Job Scripting Runs when the job completes $jobserver and $jobinstance object Useful for: Updating database entries Rescheduling a job if there is an error

Communication Server Scripts Review available objects ($scriptcontext, t t $security, $log, $connection, $command, $session, $local, $filetransfer, $attempt,,$packetfactory) Working with connections Initiated connections vs. listening connections Appliance registration Sending command to an Appliance RMCS event model

Using the $session Object Get the job name and instance item id Send remote appliance Using script timers Communicating with the Job Server

Transferring Files Use $filetransfer PutFiles, GetFiles ActiveTransferCount SetMaxDirectionalTransfers Events OnTransfersStarted, OnTransfersFinished OnTransferStarted OnTransferSuccess, OnTransferError

Job Server Scripts Run on the Job Server Set the type of script in the Job Definition RMCS APIs available to the script Useful for server maintenance and configuration

Remote Server Scripts Run on the Remote Server Manually run scripts Script Events (start up, shutdown, connection) Scheduled scripts

Creating a Remote Script Edit script normally Signing script with permissions Save to XML file Transfer to **SCRIPT** directory Testing Viewing remote logs

RMCS Update Updating the server is as easy as copying new exe and dll files 3 steps to update Create.zip with dlls to update or add Transfer.zip files to **UPDATE** folder Call rmanage /update to unpack the update

Value Cache Name value pair store Transferred during handshaking How to set/get values How to persist the store automatically How to persist the store manually

Advanced Topics Using.NET Assys Using MSDN help The CUEScript <assembly> tag Creating your own assembly

Advanced Topics Database Extensions $database and management objects <dbconnection>, <dbquery>, <dbexec>

Questions

Thank You CLEO Helping Move Your Business Forward.

2010 Cleo Communications. All rights reserved. Reproduction of this publication in any form without prior written consent is forbidden.