WEB开发网
开发学院WEB开发Jsp PowerFolder 工作流服务器版本0.5 试驾之旅(5) 阅读

PowerFolder 工作流服务器版本0.5 试驾之旅(5)

 2008-01-05 20:19:37 来源:WEB开发网   
核心提示:Web Page Development and Web Client APIWeb页面开发和Web客户端提供的API 3.1 Overview 概述To create or edit existing web pages, from the PowerFolder Console click 'Develop

Web Page Development and Web Client API
Web页面开发和Web客户端提供的API
 3.1 Overview 概述
To create or edit existing web pages, from the PowerFolder Console click 'Develop', then 'Web
Pages'. You can either edit an existing web page by clicking the 'Edit' button beside it or create a
new web page by entering its name in the box next to 'New Web Page' and clicking 'Create'.
Remember, new and editted web pages cannot be seen by outside viewers until they are deployed
under the 'Administer' section.
为了创建页面和编辑已有页面,从PowerFolder控制台单击Develop,然后Web
Pages.你可以编辑一个现存的页面,通过单击它旁边的Edit按钮,或者通过在New Web
Page' 旁的文本框中输入它的名字并且单击'Create'按钮来创建一个新页面。记住,新的
和编辑的页面不能从外部观察者看到直到他们在'Admimister'部分被发布为止。

Standard Html is rather bland. It just displays things for the user to see, but it can't understand
commands issued by the user or 'do anything'. It can't read HTML 'form' parameters, it can't use
user submitted information to change the state of a workflow.
标准的HTML是相当谦逊的。它仅仅显示用户看到的,不过它不能理解用户发出的做
任何事情的命令。它不能阅读HTML form参数,它也不能利用用户提交的信息来改变工作
流的状态。

That is where 'client' comes in. By default, it is included with every web page in PowerFolder. Its
role is to simplify the PRocess of making HTML 'intelligent'.
这就是client进入的原因。缺省情况下,它被包含在PowerFolder的每个页面之
中。它的作用是简化使HTML智能的过程。

Web pages in PowerFolder use java jsp scripting and syntactically correct scripting means
following the JSP conventions. For a general script area within a web page, start it with '<%' and
end it with '%>'. For a one line script that writes output that the user will see, start it with '<%= '
and end it with '%>'.
PowerFolder中的web页面使用jsp脚本,通过JSP转换来得到正确的脚本含义。对
于一个页面中的脚本区域,它开始于<%,结束于%>,对于一行中的脚本,用于输出给用户可
见的内容,开始于<%=,结束于%>。

The goal of 'client' is to minimize the learning curve and make the scripting process more
enjoyable.
client的目标是使学习过程最小化而且使脚本流程更有趣。

PowerFolder can use any Java class or primitive, but by default it uses 3 variable types –
Boolean, Decimal, and String. In the view of 'client' these represent 'boolean', 'double', and
'java.lang.String' in Java.
PowerFolder可以使用任何java类和主类型,但缺省情况下它使用三种变量类型-
Boolean, Decimal, 和 String. 在client的观点来看,这些表示了Java中的boolean,
double, 和java.lang.String。

Note about below - when '()' is used to surround a name in a description, it is referring to an input
argument. For instance if 'startWorkflow("Hello")' will start a workflow with trigger data
'<powerfolder>Hello</powerfolder>', not '<powerfolder>(arguement1)</powerfolder>'.
注重下面内容,当()被用来在描述中包围一个名字时,它表示一个输入参数。例如如
果'startWorkflow("Hello")'将启动一个工作流,带有触发数据'<powerfolder>Hello

Tags:PowerFolder 工作流 服务器

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接