Mobyle XML Vivek Gopalan Version history: First version for training Nick and Art – Vivek, 02/07/2011.

Slides:



Advertisements
Similar presentations
Struts Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Advertisements

An advanced testing, recording, and evaluation tool for online training and performance evaluation. RoboTutor Software, 8980 Cheshire Drive, Sandy, Utah.
Samsung Smart TV is a web-based application running on an application engine installed on digital TVs connected to the Internet.
1 CSC 551: Web Programming Spring 2004 client-side programming with JavaScript  scripts vs. programs  JavaScript vs. JScript vs. VBScript  common tasks.
Feature requests for Case Manager By Spar Nord Bank A/S IBM Insight 2014 Spar Nord Bank A/S1.
Computer Science 103 Chapter 4 Advanced JavaScript.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
JavaScript: Control Structures September 27, 2005 Slides modified from Internet & World Wide Web: How to Program (3rd) edition. By Deitel, Deitel,
WEB DESIGN AND PROGRAMMING Introduction to Javascript.
LATTICE TECHNOLOGY, INC. For Version 10.0 and later XVL Web Master Advanced Tutorial For Version 10.0 and later.
UNESCO ICTLIP Module 4. Lesson 4 Database Design, and Information Storage and Retrieval Lesson 4. Advanced features of WinISIS.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
ULI101 – XHTML Basics (Part II) What is Markup Language? XHTML vs. HTML General XHTML Rules Block Level XHTML Tags XHTML Validation.
Introducing Dreamweaver MX 2004
Tutorial 1 Getting Started with Adobe Dreamweaver CS3
Tutorial 1: Getting Started with Adobe Dreamweaver CS4.
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
London April 2005 London April 2005 Creating Eyeblaster Ads The Rich Media Platform The Rich Media Platform Eyeblaster.
PMS /134/182 HEX 0886B6 PMS /39/80 HEX 5E2750 PMS /168/180 HEX 00A8B4 PMS /190/40 HEX 66CC33 By Adrian Gardener Date 9 July 2012.
© 2004 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice SISP Training Documentation Template.
CSCI 6962: Server-side Design and Programming Introduction to Java Server Faces.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 6 Value- Returning Functions and Modules.
IST 210: PHP BASICS IST 210: Organization of Data IST210 1.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
Part 1 – PubMed Interface, Display options, Saving, Printing, and ing results. Instructions This part of the course is a PowerPoint demonstration.
The WinMine Toolkit Max Chickering. Build Statistical Models From Data Dependency Networks Bayesian Networks Local Distributions –Trees Multinomial /
Utterly Useless Widget creating your own Chameleon widget...
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 5 – Dental Payment Application: Introducing.
Web Design (3) HTML tags. Back to your web design ! Open Brackets Click on the drop down box on the left. Last time, you clicked on ‘Open Folder’ but.
1 Creating Web Pages Part 1. 2 OVERVIEW: HTML-What is it? HyperText Markup Language, the authoring language used to create documents on the World Wide.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
XP 1 New Perspectives on XML Binding XML Data with Internet Explorer.
JavaScript - A Web Script Language Fred Durao
Goran Topic Pre-Installed Application Launcher Module for P-GRADE portal Goran Topić Ruđer Bošković Institute Zagreb, Croatia.
Intro to PHP IST2101. Review: HTML & Tags 2IST210.
Creating Graphical User Interfaces (GUI’s) with MATLAB By Jeffrey A. Webb OSU Gateway Coalition Member.
Tutorial 3 Adding and Formatting Text with CSS Styles.
Geneva, 2nd Tutorial for Health e-Child Project, Service creation in Genius Web Portal Nicola Venuti NICE srl Geneva, , 2nd.
Student Fees A-Z. Ed Kobus This document contains confidential proprietary trade secret information of SunGard K-12 Education. This file is not to be.
 2008 Pearson Education, Inc. All rights reserved JavaScript: Introduction to Scripting.
IN THE NAME OF GOD. Reference Citing Software.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Test – 2 Pre.
Introduction to Matlab Module #10 Page 1 Introduction to Matlab Module #10 – Creating Graphical User Interfaces Topics 1.Overview of GUI Development using.
HTML HYPER TEXT MARKUP LANGUAGE. INTRODUCTION Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm”
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
JavaScript Introduction and Background. 2 Web languages Three formal languages HTML JavaScript CSS Three different tasks Document description Client-side.
B Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Working with PDF and eText Templates.
JavaScript Events Java 4 Understanding Events Events add interactivity between the web page and the user You can think of an event as a trigger that.
: Information Retrieval อาจารย์ ธีภากรณ์ นฤมาณนลิณี
INTERNET APPLICATIONS CPIT405 Forms, Internal links, meta tags, search engine friendly websites.
1 PSI/PhUSE Single Day Event – SAS Applications – June 11, 2009 SAS Drug Development from the Inside Magnus Mengelbier Director.
1 Agenda  Unit 7: Introduction to Programming Using JavaScript T. Jumana Abu Shmais – AOU - Riyadh.
IST 210: PHP Basics IST 210: Organization of Data IST2101.
Tutorial 6 Creating Reusable Assets and Forms. Objectives Session 6.1 – Explore the head content of a page – Add keywords to a page – Add a meta description.
Receiving form Variables
CARA 3.10 Major New Features
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
Introduction to Scripting
HTML Forms and User Input
(Includes setup) FAQ ON DOCUMENTS (Includes setup)
Basic HTML and Embed Codes
T. Jumana Abu Shmais – AOU - Riyadh
Training & Development
5.00 Apply procedures to organize content by using Dreamweaver. (22%)
(Includes setup) FAQ ON DOCUMENTS (Includes setup)
Web Programming and Design
Presentation transcript:

Mobyle XML Vivek Gopalan Version history: First version for training Nick and Art – Vivek, 02/07/2011

Mobyle XML Link between command-line application and web-form or web service Defines the command-line application documentations and arguments in XML format

Mobyle Framework : Command-line Application to Web Application clustalw-mobyle.xml

Tutorial Assume Vivek has written a simple command- line application called fah2celsius to convert Fahrenheit (F) to Celsius (C) fah2celsius --input 270 The above commands prints the Celsius value in the standard output. Let’s convert this simple application to web application using Mobyle Framework

Implementation/Deployment steps 1.Create a Mobyle XML file called fah2celsius.xml to handle the application input and output parameters. fah2celsius --input Copy the file to the Local/Services/Programs folder in Mobyle library folder – Mobyle folder is configured by default to fetch XML files from this folder 3.Deploy the fah2celsius.xml to the Mobyle web location using Tools/mobdeploy command – The deployment step checks erros and processes the XML file from the above folder and copy it to the web folder that is accessible by Mobyle application. Tools/mobdeploy deploy -p fah2celsus 4.Test the deployment from the Mobyle web interface Design slide link

XML view generated using Mobyle XML file – primary tags head tag contains the metadata about the Application such as title, author, categories, Documentation, references, etc. parameters tag defines the input and output arguments used by the command-line program tag is the primary tag used to define about specific application

XML view generated using Mobyle XML file – head tag (meta data) name tag (usually same as the XML file name), used to name job name command tag represent the actual command or executable file name category tag is used to show the fah2cesius application in the applications list tree in Mobyle interface

XML view generated using Mobyle XML file – parameter Vs Paragraph Parameter represents a specific command line argument and represent one HTML form component or widget. fah2celsius --input 270 First parameter (input_value) fah2celsius --input format-output > celcius.txt 1 st parameter (input_value) 3 rd parameter (output_file) 2 st parameter (format_output) Paragraph represents one or more parameters (command line argument) 2 nd and 3 rd parameters could be combined as “Output options”

Parameter Defines the specific argument of command line arguments – Should contain unique name – value and/or default value – Code to generate the command-line argument string Written as simple python conditions – User-friendly description and comments – Relative position of it in the command-line – Precondition to generate the condition E.g only add the parameter value if some other parameter value is selected Written as simple python conditions

Parameter - continues – Different data types that is mapped to specific HTML form components or widgets Sequence/Alignment/Tree (file upload button) Integer/Float/String (Text box) Text/Report (File upload button) Choice/MultipleChoice (list box) Boolean (Check box) – Can be categorized based on the attributes Issimple ( show in simple view only) Ishidden (do not show this panel – used for options that are given as default) Ismandatory (cannot be empty) Isstdout/isout ( the output files generated from the application – used for pipelining and workflow creation)

XML view generated using Mobyle XML file – parameter The parameter tag attributes represents the categories The prompt tag gives the simple description The name tag should be unique. The type/datatype/class tags defines the type The argpos tag defines the relative position of the Parameter in the command line The format tag defines actual command-line string Generated. A python code snippet is used.

XML view generated using Mobyle XML file – Other examples (Boolean type) The vdef value selects the default value for Boolean type It can be 0 or 1

Python code snippet The parameter name is used refer to value – E.g input_value could used to refer to the value of that parameter in any parameters Special variables - value & vdef – Parameters cannot have value or vdef as their names or id. – value: represents the selected value of that parameter or file name (if parameter is file upload) – vdef: represents the default value of that parameter

Python code snippets 1. Concatenation: “ --input “ + str(value) If the value entered by user is 10 then “ --input 10” will Be generated by the above code Notes: 1. Leave a whitespace at the beginning of the code is used to concatenate two string 3. Double or single quote should be used to delimit strings 2. One line Condition: (“”, “ -b ”)[value is not None] (“”, “ --o ” + str(value))[value != vdef] (“ --x ” + vdef, “ --x ” + value)[input_value < 5 ] General structure : circular bracket and square bracket (false action, true action) [condition] The input_value represent the parameter name in that XML file.

Python code snippets 3. Check value is present in a list: (“”,” –a tempCal ”) [ input_type in [‘fahrenheit’,’celsius’] ] If input_type parameter value is fahrenheit or celsius then “ –a tempCal “ will be used as parameter command-line Argument Very often used in the tag which is used to check/evaluate whether the command-line argument for that parameter could be used or not in the command.

Paragraph Contains one or more parameters Group command-line arguments into meaningful categories – E.g. input options, output options, advanced features Could be used to control the layout of multiple parameters (not often used now in Mobyle)

XML view generated using Mobyle XML file – paragraph The name tag should be unique. The parameters tag defines multiple parameters Or paragraphs in it The layout tag could be used for arranging the parameters In the paragraph in the web interface (optional)

Design steps (follow this before implementation step) Read the manual or help page of the command-line application – Note whether the order of parameter matters Categorize the parameters into meaningful groups(paragraph) Use the command-line arguments names (eg. --input or -x ) as part of the parameter description ( tag) Note down the different types of output files generated from application – Useful to display the output file in job results and linking to other applications in workflow Note which parameters will be assigned simple and/mandatory Try to use all the command-line arguments for the applications – Helps experienced command-line user to related web form to the command- line utility Implementation slide link

Final notes Use Xinclude option for parameters that uses local resources – Eg blast databases – Eg bowtie indexes Remember – We covered only the tag in this tutorial – Mobyle manages the job results and workflow definitions also through XML – Workflow definitions can be automatically handled Mobyle Workflow application or manually by user.

Thanks….