You've already forked reflex-wms-connector
@@ -1,10 +1,4 @@
|
|||||||
{
|
{
|
||||||
<#assign appointmentPathURL = JsonUtil.getAppointmentPathURL(eventRP.site,eventRP.refid)>
|
|
||||||
<#assign payLoad = '{ "Header": {"ProjectID": "${projectRP!""}"},"IsOnce": false,"IsPublic": true,"TimeToLive": "0","URL": "${appointmentPathURL}"}' />
|
|
||||||
<#assign projectGetTinyURL = QueryApiReflexPlatformID.ProjectGetTinyURL>
|
|
||||||
<#assign response = QueryApiReflexPlatformCall.call(projectGetTinyURL,payLoad) />
|
|
||||||
<#assign tinyURL = JsonUtil.jsonToMap(response)>
|
|
||||||
|
|
||||||
"id" : {"refid" : "${eventRP.refid?json_string}","actorID":"${RPtoRFXprefixDepot(eventRP.actor)}"},
|
"id" : {"refid" : "${eventRP.refid?json_string}","actorID":"${RPtoRFXprefixDepot(eventRP.actor)}"},
|
||||||
"route" : "rest/public/v1/physical_depots/{physical_depot_code}/carrier_appointments",
|
"route" : "rest/public/v1/physical_depots/{physical_depot_code}/carrier_appointments",
|
||||||
"method" : "POST",
|
"method" : "POST",
|
||||||
@@ -13,16 +7,6 @@
|
|||||||
},
|
},
|
||||||
"payload" :
|
"payload" :
|
||||||
{
|
{
|
||||||
<#if tinyURL?? && tinyURL.TinyURL?? >
|
|
||||||
"comment_list": [
|
|
||||||
{
|
|
||||||
"line_number": 1,
|
|
||||||
"group_code": "SCN",
|
|
||||||
"text": "${tinyURL.TinyURL.URL?json_string}"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
</#if>
|
|
||||||
|
|
||||||
"appointment_reference": "${eventRP.refid?json_string}",
|
"appointment_reference": "${eventRP.refid?json_string}",
|
||||||
<#switch appointment.AppointmentType>
|
<#switch appointment.AppointmentType>
|
||||||
<#case "APPOINTMENT_TYPE_LOADING">
|
<#case "APPOINTMENT_TYPE_LOADING">
|
||||||
|
|||||||
@@ -19,3 +19,23 @@
|
|||||||
Int : .Int
|
Int : .Int
|
||||||
String : .String
|
String : .String
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
<#-- Note : you can send url path of appointment to WMS, using this below code -->
|
||||||
|
|
||||||
|
<#--
|
||||||
|
<#assign appointmentPathURL = JsonUtil.getAppointmentPathURL(eventRP.site,eventRP.refid)>
|
||||||
|
<#assign payLoad = '{ "Header": {"ProjectID": "${projectRP!""}"},"IsOnce": false,"IsPublic": true,"TimeToLive": "0","URL": "${appointmentPathURL}"}' />
|
||||||
|
<#assign projectGetTinyURL = QueryApiReflexPlatformID.ProjectGetTinyURL>
|
||||||
|
<#assign response = QueryApiReflexPlatformCall.call(projectGetTinyURL,payLoad) />
|
||||||
|
<#assign tinyURL = JsonUtil.jsonToMap(response)>
|
||||||
|
|
||||||
|
<#if tinyURL?? && tinyURL.TinyURL?? >
|
||||||
|
"comment_list": [
|
||||||
|
{
|
||||||
|
"line_number": 1,
|
||||||
|
"group_code": "SCN",
|
||||||
|
"text": "${tinyURL.TinyURL.URL?json_string}"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
</#if>
|
||||||
|
-->
|
||||||
Reference in New Issue
Block a user