Beruflich Dokumente
Kultur Dokumente
d to work on
Contains logic, control constructs, local variables, etc.
Activities: Work horses behind a process flow Determine who to route a work object to, send correspondence, access database, etc.
Activities automate processing. Activity rules contain a sequence of structured steps. Each step calls a method rule or contains a control instruction such as Call or Branch. Each activity has a type that characterizes its purpose and affects which other rules can call it.
Activity Look-N-Fell
Drag and Define parameters Drop steps for this activity
List of pages it will access Define security and activity type Document your rule here
Steps Methods Step Actions Step Pages Iterations Precondition Transition Parameters
A Step is a primary processing unit of an activity Defined on the steps tab of activity form A variety of conditions may alter this sequence Step 1
Step Action
1.Calling a method
2.Custom java
Each Activity Step can Call a method, Transfer control to another activity, Execute custom in-line java
Use the pages and classes tab to list the pages used in the steps of this activity
Use iterations to repeat a step a number of this method to times, or until a condition is met. Applyembedded page each
Identify here, a when condition rule or an expression that returns true or false
Use transitions to specify conditions evaluated after the method in the step is performed but before the execution continues with other steps.
a checkmark indicates that this step has a transition defined.
Identify here, a when condition rule or an expression that returns true or false
Parameters
Are variables used as input or outputs for the activity When an activity is called PRPC places parameter names and values on a page Is known as the parameter page Has no name or class associated Referred to by using prefix keyword param. Example: param.depth refers to the depth parameter
parameters
Datatype
Input or Output
Activity Performs general processing Assign Initiates assignments, reference from the assignment shape Connect Interface with an external system, reference from the Integrator Shape Notify send corespondence and notifications, reference from the Notify Shape OnChange Perform processing that is executed by a declare onchange rule Route Route assignments, reference from the Router Shape Trigger perform processing that is executed by a declare OnChange rule Utility perform automated processing that requires no user input, reference from the Utility Shape Validate Validate screen input
Step Page
When one activity calls another activity, it must specify: The page that the activity will work on (which becomes the primary page of that activity) The activity that is being called Within the called activity, its primary page is what it was called to work on Similar to the keyword this in Java and C++ Pages are referred to by name Example: PageName Properties are referred to with a . (dot) operator before the property name Example: .PropertyName Use both together like this: PageName.PropertyName
The Page name we specify reflects in the step page of steps tab.
User Pages A structure containing all the top-level pages created by your application and normal processing, sorted alphabetically by page name pyWorkPage is associated with User Pages. pyWorkPage Represents the current work object Contains all its properties and their current values In other words the current page on which you are operating is called primary page. Think of primary page as this page Activities may use the logical page names, which may not actually exist as they are called in the clipboard. For example Activities may use a working page called Primary, a parameter page called Parameter and a local parameter page called Local.
Page Responsibility
Is an in-memory data structure that holds name-value pairs Acts as a buffer (temporary copy) of object instances that are copied from, or may later be stored in a database table Typically has: A name A class A list of properties and their values Pages are added to the clipboard by activities and user input
Name: pyWorkPage
Properties
Method: Property-Set
Literal values
Expressions
Append rows to set multiple properties
Page-New
Used to create a new page on the clipboard The new page may be a top level page or an embedded page Will be named using the Step page attribute You can identify a model to initialize the newly created page
Creates an embedded page
Show-Page
Sends an XML representation of the step page to a users Internet Explorer browser session
Is used as an aid to debugging
Used to open an instance stored in the database and load it into the clipboard
Class of step page Values required in order to locate the correct object
Used to delete one or more pages from the Clipboard Good development practice
The contents of database are not affected
For testing purposes, you may need to check this box temporarily. Checking this allows users to start this activity directly through user input processing
Execute Activity
Value set
Define initial values for properties of a specified class Are applied to a new empty page of a class
Are listed in the technical rule category
Similar to constructors in Java and C++ Set many property values in one processing step Are named pyDefault by convention
What is Model?
When you create a page, you can opt to specify a model Rule used to initialize a page Set property values in a model Similar to constructors in Java and C++ Does not take arguments/parameters By convention, named pyDefault Subclass models call superclass models that have the same name To create a model in work class that initializes certain properties Examine the default model for Work- before creating a model Property values set in your model override any set by the models in Work- (and other parent) classes Initialize all application-specific data
Sub Class Model may call super class models that have the same name
Then uses pattern inheritance to find and apply specialized models The current model is applied last 1 @baseclass pyDefault 3 2 JPM-OrderEntrySystem WorkpyDefault pyDefault JPM-OrderEntrySystem-PO 4 pyDefault