Ansicht
Dokumentation

POC_JNET_VISUALIZATI - BAdI: Enhancement of Process Instance and Definition Visualization

POC_JNET_VISUALIZATI - BAdI: Enhancement of Process Instance and Definition Visualization

BAL_S_LOG - Application Log: Log header data   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

This BAdI allows extended personalization of the process definition and instance visualization.

The process visualization uses the JNET control. This control displays the process flow of process instances and process definitions based on an XML file. The XML file is created based on the process flow information given that is then transformed using simple transformation. This BAdI will let you:

  1. Enrich the data displayed for process instances
  2. Enrich the data displayed for process definitions
  3. Handle events raised from the visualization

Generally you will need to adjust the transformation to consider any additional data. The configuration of the transformation is explained in activity Define Graphical Presentation of Process Instances and Process Definitions.

To enrich data, the BAdI provides five tables. The data of the tables can be changed and the changes will take effect in the visualization.

All tables have CI-includes. These includes can be extended to contain additional data that can be used in the transformation.

Note that changes must be consistent, particularly for the edges. If nodes are removed are made invisible the related edges must also not be visible, otherwise JNET tries to render an edge to a non-existing node, which leads to an error message.

  1. You want to remove an activity from the visualization of the process instance under certain conditions, e.g. for certain users.
    In method ENRICH_DATA_INSTANCE of the BAdI remove the nodes from table CT_NODES and the related edges from table CT_EDGES if the condition is met. Alternatively you can set the visibility of nodes and edges to 8.
  2. You want to display application-specific data in the visualization, e.g. the Sold-To Party of the sales orders. This is relevant for one process only.
    1. Add the field to the nodes table: Add field ZZKUNNR with data element KUNAG to include CI_POC_JNET_NODE.
    2. In ENRICH_DATA_INSTANCE loop at CT_NODES and for each sales order (BO_TYPE = 114) read for that sales order ID (BO_ID) the relevant information using the appropriate API
    3. Copy the simple transformation POC_JNET_INSTANCE and amend it to show the new field ZZKUNNR.
    4. For the relevant process definition, change the configuration to use the new simple transformation defined above using view Define Transformation based on Process Definition ID as explained in activity Define Graphical Presentation of Process Instances and Process Definition.





    ABAP Short Reference   Vendor Master (General Section)  
    This documentation is copyright by SAP AG.

    Length: 2894 Date: 20240607 Time: 093957     sap01-206 ( 60 ms )