Navigation:  Integration via SOAP web services > Published web services > Asset >

importPlanActivity

Previous  Top  Next

This method enables to insert and edit:

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

Request

web\wwwroot\ws\java\asset\ImportPlanActivityRequestType.java

Return

web\wwwroot\ws\java\asset\ImportPlanActivityRequestType.java

 

Request

ID #

Required

Description

FGOPTION

X

Action option:

21 – Add;

22 – Edit;

FGPLANTYPE

Plan type:

1 – Verification;

2 – Preventive maintenance;

3 – Calibration.

IDPLANACTIVITY

X

Plan ID #

NMPLANACTIVITY

Plan name

IDMODELACTIVITY

Standard activity ID #

FGPLANCONF

Plan configuration:

1 – Inherit activity data;

2 – Copy activity data.

IDASSET

Asset ID #. For multiple assets separate the identifiers with semicolons.

E.g.: IDATIVO01;IDATIVO02;IDATIVO03

IDTEAM

Responsible team ID # for the plan

IDTEAMPROG

Responsible team ID # for planning

IDTEAMEXEC

Responsible team ID # for execution

FGDATEFREQUENCY

 

Date-based frequency:

1 – Enable;

2 – Disable.

FGFREQTYPE

Frequency type:

1 – Execution date;

2 – First use;

3 – Usage time.

QTFREQUENCE

Frequency

FGFREQUNIT

Frequency unit:

1 – Day(s);

2 – Week(s);

3 – Month(s);

4 – Year(s);

5 – Working day(s).

FGDATEVIEW

Date visualization:

1 – Month/Day/Year;

2 – Month/Year.

DTNEXTEXECUTION

Date of the next execution (format Y-m-d)

IDCALENDAR

 

Calendar ID #

FGMETERFREQUENCY

 

Frequency based on asset meter:

1 – Enable;

2 – Disable.

VLMETERFREQUENCY

X4

Frequency

VLANTECIPATION

X4

Anticipation

VLNEXTEXECUTION

X4

Next execution

FGAUTOCREATE

 

Create activity automatically:

1 – Enable;

2 – Disable.

FGAUTOSTATUS

X5

Activity step created automatically:

1 – Planning;

2 – To be started.

QTDAYBEFORE

X5

Number of days that the automatic activity will be created previously

FGKEEPCREATING

X5

Continue to create activities automatically even if there are already pending activities?

1 - Yes;

2 - No.

IDEVALMETHOD

X6

Evaluation method ID #

DSEVALCRIT

X7

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]

QTNOTIFYB4DAY

 

Number of days in advance of notification between 0 and 999.

 

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).

X4: Required if the frequency based in meters is enabled (FGMETERFREQUENCY = 1).

X5: Required if the option to create an activity automatically is enabled (FGAUTOCREATE = 1).

X6: Required if the DSEVALCRIT field is filled.

X7: Required if the IDEVALMETHOD field is filled.

 

Return

ID #

Description

return

SUCCESS: 1

FAILURE: Returns a message regarding the error that occurred