Class OrganigramController

  • All Implemented Interfaces:
    Serializable

    @Named
    @ViewScoped
    public class OrganigramController
    extends org.imixs.workflow.faces.data.ViewController
    The OrganigramController generates the JSON data structure used by the Orgchart (https://github.com/dabeng/OrgChart).

    The controller provices two data structures 'datasourceProcesses' and 'datasourceSpaces'. The structure looks like this:

     {
        'name' : 'Prozesse',
        'id' : 'root',
        'title' : 'Organisations Bereiche',
        'children' : [
                {
                    'name' : 'Controlling',
                    'id' : 'unter-id1',
                    'title' : 'Invoices',
                    'className' : 'process'
                    
                }, {
                    'name' : 'HR',
                    'title' : 'Human Source processes',
                    'className' : 'process'
                }
               ]
        };
     
    Author:
    rsoika
    See Also:
    Serialized Form
    • Constructor Detail

      • OrganigramController

        public OrganigramController()
    • Method Detail

      • getSelectedNodeID

        public String getSelectedNodeID()
        returns the currently selected node id or null if no node was selected
        Returns:
      • setSelectedNodeID

        public void setSelectedNodeID​(String selectedNodeID)
      • getSelectedNode

        public org.imixs.workflow.ItemCollection getSelectedNode()
        returns the currently selected node ItemCollection or null if no node was selected
        Returns:
      • setSelectedNode

        public void setSelectedNode​(org.imixs.workflow.ItemCollection selectedNode)
      • getProcessDatasource

        public String getProcessDatasource()
        Returns a json structure with the process data
        Returns:
      • getSpaceDatasource

        public String getSpaceDatasource()
        Returns a json structure with the space data
        Returns:
      • loadNode

        public void loadNode()
        Loads the selected node by its ID.