Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shahmini master epic3358 [7] #378

Merged
merged 20 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
$integration: http://ibm.com/appconnect/integration/v2/integrationFile
integration:
type: trigger-action
trigger-interfaces:
trigger-interface-1:
connector-type: msexcel
type: event-trigger
triggers:
CREATED:
input-context:
data: Row
assembly:
$ref: '#/integration/assemblies/assembly-1'
options:
DriveId: b!cj6fpn_rckezu0EVg2oMOgMC0sfPYdFKvhluqpsZkGU5UFn7wDNpRpM91EGWr_sa
WorkbookId: 01NODPFIV6WLNK4RVUGJG2VTFRHU7FRBVM
WorksheetId: '{00000000-0001-0000-0000-000000000000}'
parentFilter:
DriveId: >-
b!cj6fpn_rckezu0EVg2oMOgMC0sfPYdFKvhluqpsZkGU5UFn7wDNpRpM91EGWr_sa
WorkbookId: 01NODPFIV6WLNK4RVUGJG2VTFRHU7FRBVM
WorksheetId: '{00000000-0001-0000-0000-000000000000}'
action-interfaces:
action-interface-3:
type: api-action
business-object: request
connector-type: http
actions:
INVOKE: {}
assemblies:
assembly-1:
assembly:
execute:
- set-variable:
name: Set variable
map:
$map: http://ibm.com/appconnect/map/v1
customSchemas:
properties.`variable`:
type: object
properties:
topobject:
type: object
properties:
eventresponse:
type: object
properties:
budget:
type: number
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: flowDetails
$ref: '#/flowDetails'
mappings:
- variable:
mappings:
- topobject:
mappings:
- eventresponse:
expression: '$Trigger '
mappings:
- budget:
expression: '100000'
- if:
name: If
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: Setvariable
$ref: '#/node-output/Set variable/response/payload'
- variable: flowDetails
$ref: '#/flowDetails'
branch:
- condition:
'{{$Trigger.rowData.Q}}':
lte: '{{$Setvariable.variable.topobject.eventresponse.budget}}'
execute:
- custom-action:
name: HTTP Invoke method
target:
$ref: '#/integration/action-interfaces/action-interface-3'
action: INVOKE
map:
mappings:
- method:
template: POST
- requestBody:
template: '{{$Setvariable.variable.topobject}}'
- url:
template: >-
https://instance-name/Create a job requisition in Workday/createJob_requisitions
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: RedisGetvalueofstring
$ref: >-
#/node-output/Redis Get value of
string/response/payload
- variable: Setvariable
$ref: '#/node-output/Set variable/response/payload'
- variable: flowDetails
$ref: '#/flowDetails'
else:
execute: []
output-schema: {}
name: Create a job requisition in Workday when a new row is appended in Microsoft Excel Online
models: {}
162 changes: 162 additions & 0 deletions resources/Create a job requisition in Workday.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
$integration: http://ibm.com/appconnect/integration/v2/integrationFile
integration:
type: api
trigger-interfaces:
trigger-interface-1:
triggers:
createJob_requisitions:
assembly:
$ref: '#/integration/assemblies/assembly-1'
input-context:
data: job_requisitions
output-context:
data: job_requisitions
options:
resources:
- business-object: job_requisitions
model:
$ref: '#/models/job_requisitions'
triggers:
create: createJob_requisitions
type: api-trigger
action-interfaces:
action-interface-2:
type: api-action
business-object: Recruiting___Create_Job_Requisition
connector-type: workday
actions:
Create_Job_Requisition: {}
assemblies:
assembly-1:
assembly:
execute:
- custom-action:
name: Workday Create Job Requisition
target:
$ref: '#/integration/action-interfaces/action-interface-2'
action: Create_Job_Requisition
map:
mappings:
- Create_Job_Requisition_Data:
mappings:
- Create_Job_Requisition_Reason_Reference:
mappings:
- ID__NORMALIZED:
mappings:
- Event_Classification_Subcategory_ID:
template: >-
{{$MicrosoftExcelOnlineAppendrow.rowData.B}}
- Job_Requisition_Data:
mappings:
- Job_Description:
template: '{{$MicrosoftExcelOnlineAppendrow.rowData.F}}'
- Job_Description_Summary:
template: '{{$MicrosoftExcelOnlineAppendrow.rowData.E}}'
- Job_Posting_Title:
template: '{{$MicrosoftExcelOnlineAppendrow.rowData.D}}'
- Job_Profile_Reference:
mappings:
- ID__NORMALIZED:
mappings:
- Job_Profile_ID:
template: >-
{{$MicrosoftExcelOnlineAppendrow.rowData.G}}
- Position_Time_Type_Reference:
mappings:
- ID__NORMALIZED:
mappings:
- Position_Time_Type_ID:
template: >-
{{$MicrosoftExcelOnlineAppendrow.rowData.L}}
- Primary_Job_Posting_Location_Reference:
mappings:
- ID__NORMALIZED:
mappings:
- Location_ID:
template: >-
{{$MicrosoftExcelOnlineAppendrow.rowData.K}}
- Primary_Location_Reference:
mappings:
- ID__NORMALIZED:
mappings:
- Location_ID:
template: >-
{{$MicrosoftExcelOnlineAppendrow.rowData.J}}
- Recruiting_Start_Date___Date:
template: '{{$MicrosoftExcelOnlineAppendrow.rowData.N}}'
- Scheduled_Weekly_Hours:
expression: '$MicrosoftExcelOnlineAppendrow.rowData.M '
- Target_End_Date___Date:
template: '{{$MicrosoftExcelOnlineAppendrow.rowData.P}}'
- Target_Hire_Date___Date:
template: '{{$MicrosoftExcelOnlineAppendrow.rowData.O}}'
- Worker_Sub-Type_Reference:
mappings:
- ID__NORMALIZED:
mappings:
- Employee_Type_ID:
template: >-
{{$MicrosoftExcelOnlineAppendrow.rowData.I}}
- Worker_Type_Reference:
mappings:
- ID__NORMALIZED:
mappings:
- Worker_Type_ID:
template: >-
{{$MicrosoftExcelOnlineAppendrow.rowData.H}}
- Number_of_Openings:
expression: '$MicrosoftExcelOnlineAppendrow.rowData.C '
- Supervisory_Organization_Reference:
mappings:
- ID__NORMALIZED:
mappings:
- Organization_Reference_ID:
template: >-
{{$MicrosoftExcelOnlineAppendrow.rowData.A}}
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Request
$ref: '#/trigger/payload'
- variable: flowDetails
$ref: '#/flowDetails'
- response:
name: response-1
reply-maps:
- title: job_requisitions successfully created
status-code: 201
map:
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Request
$ref: '#/trigger/payload'
- variable: WorkdayCreateJobRequisition
$ref: >-
#/node-output/Workday Create Job
Requisition/response/payload
- variable: flowDetails
$ref: '#/flowDetails'
mappings:
- budgetvalue:
expression: '$Request.budgetvalue '
- eventresponse:
expression: '$WorkdayCreateJobRequisition '
input: []
tags:
- incomplete
name: Create a job requisition in Workday
models:
job_requisitions:
name: job_requisitions
properties:
budgetvalue:
required: false
id: true
type: number
eventresponse:
required: false
id: false
type: {}
plural: job_requisitions
description: ' '
operations:
create: '#/integration/assemblies/assembly-1'
Loading
Loading