4

The page displayed on Clipboard pyWorkPage and pyWorkCover.

Can you tell me the difference between them? And let me from where I will get complete data to read about the Clipboard.

DimaSan
  • 12,264
  • 11
  • 65
  • 75
chetan humbe
  • 41
  • 1
  • 2

2 Answers2

3

Let's assume an application which has two work types: Order and Approval. Their work classes would be Edu-SampleApp-Work-Order and Edu-SampleApp-Work-Approval. Furthermore one Order needs one or more Approvals which are spinned of as subcases (that is separate business process objects).

pyWorkPage always refers to the current work object you are performing. If you are creating / processing an Order this Order object will be held in the current thread under the name pyWorkPage. When the approver opens an Approval workobject (different thread) this Approval object will be opened into pyWorkPage. Additionally, since Approval knows the instance key to it's parent case (the corresponding order) it will open this parent case into the page pyWorkCover.

Which means:

  • pyWorkPage will be of a class in your application layer (Edu-SampleApp-Work-Order or Edu-SampleApp-Work-Approval) which then derives from Work- or Work-Cover-.
  • pyWorkCover is of a class in your application layer (Edu-SampleApp-Work-Approval) which then derives from Work-Cover-

The other answer saying the page would contain the Assignment is wrong, since assignments are instance of a class derived from the Assign- class, typically Assign-Worklist or Assign-Workbasket class.

Some info:

MarkWatney
  • 144
  • 6
2

Harness forms are displayed with the standard activity @baseclass.Show-Harness. This activity expects to find (by convention) objects on the page names:

  • pyWorkPage - conventional name for the page that contains a work item. This page usually has a class derived from the Work-Object- class.

  • pyWorkCover - conventional name for the page that contains an assignment object. This page has a class derived from the Assign- base class.

You can find a lot about using Clipboard tool here: Using the Clipboard tool.

DimaSan
  • 12,264
  • 11
  • 65
  • 75
  • Please see my answer, the class of `pyWorkCover` does **not** inherit from `Assign-`. Its class inherits from some class inheriting from `Work-Cover-` or directly from `Work-Cover-`. Additionally `Assign-` should not be called base class - `@baseclass` is the base class. – MarkWatney Oct 15 '17 at 10:30