Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
titlecreateProjectTimesheet
<peoplehr.createProjectTimesheet>
    <employeeId>{$ctx:employeeId}</employeeId>
    <startTime>{$ctx:startTime}</startTime>
    <timesheetProject>{$ctx:timesheetProject}</timesheetProject>
    <timesheetDetail>{$ctx:timesheetDetail}</timesheetDetail>
    <projectTimesheetDate>{$ctx:projectTimesheetDate}</projectTimesheetDate>
    <quantity>{$ctx:quantity}</quantity>
    <timesheetTask>{$ctx:timesheetTask}</timesheetTask>
    <notes>{$ctx:notes}</notes>
    <totalHours>{$ctx:totalHours}</totalHours>
	<endTime>{$ctx:endTime}</endTime>
</peoplehr.createProjectTimesheet>
Properties
  • employeeId: Refers to the ID of the employee.
  • startTime: The start time of the timesheet. Input format "hh:mm".
  • timesheetProject: The name of the project that the time sheet needs to be created for.
  • timesheetDetail: The detail name that needs to be entered in the timesheet.
  • projectTimesheetDate: The date of the project timesheet.
  • quantity: The quantity of the timesheet.
  • timesheetTask: The task name that needs to be entered in the timesheet.
  • notes: Any additional details about the timesheet.
  • totalHours: The total number of hours. It should match the start and end time.
  • endTime: The end time of the timesheet. Input format "hh:mm".

...

Code Block
languagexml
titlegetProjectTimesheet
 <peoplehr.getProjectTimesheet>
    <employeeId>{$ctx:employeeId}</employeeId>
    <startDate>{$ctx:startDate}</startDate>
	<endDate>{$ctx:endDate}</endDate>
</peoplehr.getProjectTimesheet>
Properties
  • employeeId: Refers to the ID of the employee.
  • startDate: The start date of the project timesheet.
  • endDate: The end date of the project timesheet.

...

Code Block
languagexml
titleupdateProjectTimesheet
<peoplehr.updateProjectTimesheet>
    <employeeId>{$ctx:employeeId}</employeeId>
    <startTime>{$ctx:startTime}</startTime>
    <timesheetProject>{$ctx:timesheetProject}</timesheetProject>
    <transactionId>{$ctx:transactionId}</transactionId>
    <timesheetDetail>{$ctx:timesheetDetail}</timesheetDetail>
    <quantity>{$ctx:quantity}</quantity>
    <timesheetTask>{$ctx:timesheetTask}</timesheetTask>
    <notes>{$ctx:notes}</notes>
    <totalHours>{$ctx:totalHours}</totalHours>
	<endTime>{$ctx:endTime}</endTime>
</peoplehr.updateProjectTimesheet>
Properties
  • employeeId: Refers to the ID of the employee.
  • startTime: The start time of the timesheet. Input format "hh:mm".
  • timesheetProject: The project name that the timesheet needs to be updated with.
  • transactionId: The ID of the transaction for creating the project timesheet.
  • timesheetDetail: The detail name that needs to be updated in the timesheet.
  • quantity: The quantity of the timesheet.
  • timesheetTask: The task name that needs to be updated in the timesheet.
  • notes: Any additional details about the timesheet.
  • totalHours: The total number of hours. It should match the start and end time.
  • endTime: The end time of the timesheet. Input format "hh:mm".

...

Code Block
languagexml
titledeleteProjectTimesheet
<peoplehr.deleteProjectTimesheet>
    <employeeId>{$ctx:employeeId}</employeeId>
    <transactionId>{$ctx:transactionId}</transactionId>
</peoplehr.deleteProjectTimesheet>
Properties
  • employeeId:Required -Refers to the ID of the employee.
  • transactionId:Required -The transaction ID of the timesheet.

Anchor
request
request
Sample request

Following is a sample REST/JSON request that can be handled by the deleteProjectTimesheet operation.

...

Code Block
languagexml
titleSample Proxy
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
       name="peoplehr_createProjectTimesheet"
       transports="https,http"
       statistics="disable"
       trace="disable"
       startOnLoad="true">
   <target>
      <inSequence onError="faultHandlerSeq">
         <property name="employeeId" expression="json-eval($.employeeId)"/>
         <property name="apiUrl" expression="json-eval($.apiUrl)"/>
         <property name="apiKey" expression="json-eval($.apiKey)"/>
         <property name="startTime" expression="json-eval($.startTime)"/>
         <property name="timesheetProject" expression="json-eval($.timesheetProject)"/>
         <property name="timesheetDetail" expression="json-eval($.timesheetDetail)"/>
         <property name="projectTimesheetDate"
                   expression="json-eval($.projectTimesheetDate)"/>
         <property name="quantity" expression="json-eval($.quantity)"/>
         <property name="timesheetTask" expression="json-eval($.timesheetTask)"/>
         <property name="notes" expression="json-eval($.notes)"/>
         <property name="totalHours" expression="json-eval($.totalHours)"/>
         <property name="endTime" expression="json-eval($.endTime)"/>
         <peoplehr.init>
            <employeeId>{$ctx:employeeId}</employeeId>
            <apiUrl>{$ctx:apiUrl}</apiUrl>
            <apiKey>{$ctx:apiKey}</apiKey>
         </peoplehr.init>
         <peoplehr.createProjectTimesheet>
            <employeeId>{$ctx:employeeId}</employeeId>
            <startTime>{$ctx:startTime}</startTime>
            <timesheetProject>{$ctx:timesheetProject}</timesheetProject>
            <timesheetDetail>{$ctx:timesheetDetail}</timesheetDetail>
            <projectTimesheetDate>{$ctx:projectTimesheetDate}</projectTimesheetDate>
            <quantity>{$ctx:quantity}</quantity>
            <timesheetTask>{$ctx:timesheetTask}</timesheetTask>
            <notes>{$ctx:notes}</notes>
            <totalHours>{$ctx:totalHours}</totalHours>
            <endTime>{$ctx:endTime}</endTime>
         </peoplehr.createProjectTimesheet>
         <respond/>
      </inSequence>
      <outSequence>
         <send/>
      </outSequence>
   </target>
   <description/>
</proxy>                                                                             

...