Intro To XPages and Java DN
Intro To XPages and Java DN
• Important Parameters
• ArrayList to write to disk
• ArrayList to delete from disk
• Document Object
• Compare Object
Step 3 – Run writeDocument() method
• Executes the following Lightweight code
• DocumentOperations.writeDocument() method
• Important Parameters
• ArrayList to write to disk
• ArrayList to delete from disk
• Document Object
• Compare Object
Step 3 – runWriteDocument() method
• DocumentOperations.doButtonvalidation(ArrayList)
• Returns true or false to the fields required property
Step 4 – Workflow Class / Object
• Main engine for workflow
• Reads configuration parameters which maps actions to
• Document Readership
• Document Authorship
• Status field setting
• Emailing
• Next page to display
Step 4 – Workflow Class / Object
• Stored in an OSGI plugin
• Will deal how that’s done in a different stage
• Available Globally to all applications
• Workflow Class has various properties read from
config
• Document Readership
• Document Authorship
• Status Field
• Email Subject
• Email Recipients etc
• The Workflow Class is registered as a managed
bean and properties are available
• Workflow.readers
• Workflow.subject
• Workflow.status (the status that its moving to)
Step 4 – Workflow Class / Object
• So example if the recipients field is not null
• Evaluate the following Formula from the config
document “MailSubject” field on the current
document.
Step 4 – Workflow Class / Object
• Subject Formula = “Text”+ID+”Text”
• The Issue
• Any refresh event could trigger this message
• Only want to target validation in certain circumstances
• Such as a specific button or event triggering
• Demo the issue
Step 1 – Hijack “Required”
• In the GUI fields are “Required” – COMPUTE!