Skip to main content
Version: 2.2.2

importPlanActivity

This method allows adding and editing:

  • Data from a verification, preventive maintenance, or calibration plan;

To insert each of these items, it is necessary to follow the standard documented below.

Java class
Requestweb\wwwroot\ws\java\asset\ImportPlanActivityRequestType.java
Returnweb\wwwroot\ws\java\asset\ImportPlanActivityRequestType.java

Request:

ID #RequiredDescription
FGOPTIONXAction option:
21 - Add;
22 - Edit.
FGPLANTYPEPlan type:
1 - Verification;
2 - Preventive maintenance;
3 - Calibration.
IDPLANACTIVITYXPlan ID #
NMPLANACTIVITYPlan name
IDMODELACTIVITYStandard activity ID #
FGPLANCONFPlan configuration:
1 - Inherit activity data;
2 - Copy activity data.
IDASSETAsset ID #. For multiple assets, separate the identifiers with semicolons.
E.g.: IDASSET01;IDASSET02;IDASSET03
IDTEAMID # of the team responsible for the plan
IDTEAMPROGID # of the team responsible for planning
IDTEAMEXECID # of the team responsible for the execution
FGDATEFREQUENCYDate-based frequency:
1 - Enable;
2 - Disable.
FGFREQTYPEFrequency type:
1 - Execution date;
2 - First use;
3 - Usage time.
QTFREQUENCEFrequency
FGFREQUNITFrequency unit:
1 - Day(s);
2 - Week(s);
3 - Month(s);
4 - Year(s);
5 - Working day(s).
FGDATEVIEWDate visualization:
1 - Month/Day/Year;
2 - Month/Year.
DTNEXTEXECUTIONDate of the next execution (format Y-m-d)
IDCALENDARCalendar ID #
FGMETERFREQUENCYFrequency based on asset meter:
1 - Enable;
2 - Disable.
VLMETERFREQUENCYX⁴Frequency
VLANTECIPATIONX⁴Anticipation
VLNEXTEXECUTIONX⁴Next execution
FGAUTOCREATECreate activity automatically:
1 - Enable;
2 - Disable.
FGAUTOSTATUSX⁵Activity step created automatically:
1 - Planning;
2 - To be started.
QTDAYBEFOREX⁵Number of days that the automatic activity will be created previously
FGKEEPCREATINGX⁵Continue to create activities automatically even if there are already pending activities?
1 - Yes;
2 - No.
IDEVALMETHODX⁶Evaluation method ID #
DSEVALCRITX⁷For quantitative method:
▪For list of values: [id criterion 1]=[id result1];[id criterion 2]=[id result2]
▪For indeterminate value: [id criterion 1]=[value 1];[id criterion 2]=[value 2]
▪Mix: [id criterion 1]=[id result1];[id criterion 2]=[value 2]
For simple listing method:
▪[id result]
QTNOTIFYB4DAYNumber of days in advance for the notification, between 0 and 999.
info
  • X¹: Required when inserting.
  • X²: Required when inserting if the plan configuration is copy of (FGPLANCONF = 2).
  • X³: Required if the frequency based in dates is enabled (FGDATEFREQUENCY = 1).
  • X⁴: Required if the frequency based in meters is enabled (FGMETERFREQUENCY = 1).
  • X⁵: Required if the option to create an activity automatically is enabled (FGAUTOCREATE = 1).
  • X⁶: Required if the DSEVALCRIT field is filled out.
  • X⁷: Required if the IDEVALMETHOD field is filled out.

Request structure:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:asset">
<soapenv:Header/>
<soapenv:Body>
<urn:importPlanActivity>
<!--You may enter the following 28 items in any order-->
<urn:fgoption>?</urn:fgoption>
<urn:fgplantype>?</urn:fgplantype>
<urn:idplanactivity>?</urn:idplanactivity>
<urn:nmplanactivity>?</urn:nmplanactivity>
<urn:idmodelactivity>?</urn:idmodelactivity>
<urn:fgplanconf>?</urn:fgplanconf>
<urn:idasset>?</urn:idasset>
<urn:idteam>?</urn:idteam>
<urn:idteamprog>?</urn:idteamprog>
<urn:idteamexec>?</urn:idteamexec>
<urn:fgdatefrequency>?</urn:fgdatefrequency>
<urn:fgfreqtype>?</urn:fgfreqtype>
<urn:qtfrequence>?</urn:qtfrequence>
<urn:fgfrequnit>?</urn:fgfrequnit>
<urn:fgdateview>?</urn:fgdateview>
<urn:dtnextexecution>?</urn:dtnextexecution>
<urn:idcalendar>?</urn:idcalendar>
<urn:fgmeterfrequency>?</urn:fgmeterfrequency>
<urn:vlmeterfrequency>?</urn:vlmeterfrequency>
<urn:vlantecipation>?</urn:vlantecipation>
<urn:vlnextexecution>?</urn:vlnextexecution>
<urn:fgautocreate>?</urn:fgautocreate>
<urn:fgautostatus>?</urn:fgautostatus>
<urn:qtdaybefore>?</urn:qtdaybefore>
<urn:fgkeepcreating>?</urn:fgkeepcreating>
<urn:idevalmethod>?</urn:idevalmethod>
<urn:dsevalcrit>?</urn:dsevalcrit>
<urn:qtnotifyb4day>?</urn:qtnotifyb4day>
</urn:importPlanActivity>
</soapenv:Body>
</soapenv:Envelope>

Return:

ID #Description
returnSUCCESS: 1.
FAILURE: Returns a message regarding the error that occurred