Skip to content

Guide_Department_Management.md

Tuan NN edited this page Mar 31, 2022 · 4 revisions

Department Management

Clone source

    $ git clone -b ${branch_name} ${git repository} (e.g: git clone -b dev/feature-department_management_schedule_and_edit_function
   https://github.com/toshiba/sw360.git)
    $ cd sw360

Config

Move to the config file with the name department-config.json is saved in Folder liferay-ce-portal-7.3.3-ga4 along with the folder sw360

Change value in configuration file

  1. Open department-config.json to edit configuration file
  • vim department-config.json
    {
    "configDepartment":{
        "lastRunningTime":"${Last Running Time}",
        "pathFolder":"${Folder_path}",
        "showFileLogFrom":${day}
      }
    }
    - ${Last Running Time}: Last Running Time of Schedule
    - ${Folder_path}: path Folder contains files Inport,  end with '/' character (e.g: /home/data/)
    - ${day}: Get all log files in last "x" days in a directory and if the date is not set, default get all log files (e.g:10 days, 20 days, 30 days ,...)
  1. To save configuration file Press ESC => wq => Enter .

Intructions for using the Department Management

  • On the Interface, the User can configure the directory path by entering the path and then pressing the update button (Path Forder will save in file config Department - config.json)
  • User tracks on interface with fields: Interval, Last Running Time, Next Running Time
  • User schedule it automatically or click the Activate button manually to do the import
  • User have to view History about Import Department of System By View Log
  • User perfoms edit Department Management like other functions