21.03.2013 Views

Object Oriented ABAP

Object Oriented ABAP

Object Oriented ABAP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

An example to show how to define Attributes and Key<br />

Attributes:<br />

15. Why IF_WORKFLOW Interface?<br />

The IF_WORKFLOW interface is necessary when using an <strong>ABAP</strong> class within the SAP Web<br />

Flow Engine. The interface contains methods that allow the object to be used within the SAP<br />

Web Flow Engine.<br />

The SAP Web Flow Engine handles all objects generically. <strong>Object</strong>s have to be saved in the<br />

event of a context change. Therefore, it is necessary to convert object references in such a<br />

way that they can be saved persistently. Conversely, we have to be able to generate the<br />

corresponding instance of an <strong>ABAP</strong> class from the persistently saved key.<br />

There are also a number of SAP Web Flow Engine components, for example, the Workflow<br />

Log that can display objects. In this case the object has to provide corresponding functions.<br />

The IF_WORKFLOW interface puts a logical parenthesis round the BI_PERSISTENT (instance<br />

management) and BI_OBJECT (object behavior) interfaces. The IF_WORKFLOW interface<br />

contains the following methods:<br />

BI_PERSISTENT~FIND_BY_LPOR<br />

BI_PERSISTENT~LPOR<br />

BI_PERSISTENT~REFRESH<br />

BI_OBJECT~DEFAULT_ATTRIBUTE_VALUE

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!