#define AI_id_size_c WSO_desc_size_c |
Definition at line 52 of file appinterface.h.
#define AI_max_app_ref_string 240 |
String max size
Definition at line 59 of file appinterface.h.
#define AI_msg_size_c WSO_desc_size_c |
Definition at line 53 of file appinterface.h.
#define AI_request_no_dependancy "AI_request_no_dependancy" |
Preference
Definition at line 56 of file appinterface.h.
#define AppInterface_class_name_c "AppInterface" |
Definition at line 34 of file appinterface.h.
#define AppInterface_private_appgrp_type_name_c "PrivateAppGrp" |
Definition at line 46 of file appinterface.h.
#define AppInterface_private_structure_type_name_c "PrivateContext" |
Definition at line 45 of file appinterface.h.
#define AppInterface_vis_structure_type_name_c "VisStructureContext" |
Definition at line 47 of file appinterface.h.
#define AppInterfaceType_class_name_c "AppInterfaceType" |
Definition at line 44 of file appinterface.h.
#define AppInterfaceType_idc_type_name_c "IntermediateDataCapture" |
Request Object type
Definition at line 62 of file appinterface.h.
#define MasterRecord_class_name_c "MasterRecord" |
Definition at line 35 of file appinterface.h.
#define RecordObject_class_name_c "RecordObject" |
Definition at line 37 of file appinterface.h.
#define RequestObject_class_name_c "RequestObject" |
Definition at line 36 of file appinterface.h.
#define TC_link_ic_relation_name "IMAN_eco_link" |
Definition at line 50 of file appinterface.h.
typedef struct AI_search_criteria_s * AI_search_criteria_p_t |
typedef struct AI_search_criteria_s AI_search_criteria_t |
typedef enum Request_scope_e Request_scope_t |
typedef enum Request_state_e Request_state_t |
typedef enum Request_status_e Request_status_t |
typedef enum Request_type_e Request_type_t |
typedef enum Request_update_e Request_update_t |
enum Request_scope_e |
Request Object scope
Definition at line 93 of file appinterface.h.
enum Request_state_e |
Request Object state
Request_state_new | |
Request_state_processing | |
Request_state_pending | |
Request_state_communicating | |
Request_state_completed | |
Request_state_rejected | |
Request_state_any |
Definition at line 81 of file appinterface.h.
enum Request_status_e |
Request Object status
Request_status_normal | |
Request_status_warning | |
Request_status_severe | |
Request_status_abort | |
Request_status_any |
Definition at line 71 of file appinterface.h.
enum Request_type_e |
Definition at line 63 of file appinterface.h.
enum Request_update_e |
Update type
Definition at line 101 of file appinterface.h.
AI_API int AI_add_base_refs | ( | tag_t | ai, | |
int | num, | |||
tag_t * | refs, | |||
int * | persistNum, | |||
tag_t ** | persistObj | |||
) |
ai | (I) |
num | (I) |
refs | (I) |
persistNum | (O) |
persistObj | (OF) |
AI_API int AI_add_record | ( | tag_t | ai, | |
const char * | objId, | |||
const char * | masterId, | |||
date_t | date, | |||
tag_t * | record | |||
) |
Add or modify a record of an AI.
ai | (I) |
objId | (I) Object UID to record |
masterId | (I) Master UID (could be just the objID) |
date | (I) Last processed date |
record | (O) The record of this object |
AI_API int AI_ask_app_id | ( | tag_t | ai, | |
char | id[AI_id_size_c+1] | |||
) |
ai | (I) |
id | (O) |
AI_API int AI_ask_app_id2 | ( | tag_t | ai, | |
char ** | id | |||
) |
For context
ai | (I) |
id | (OF) |
ai | (I) |
num | (O) |
refs | (OF) num |
For Master XML file
ai | (I) |
mf | (O) |
AI_API int AI_ask_next_request | ( | tag_t | ai, | |
tag_t | cur_req, | |||
Request_type_t | type, | |||
Request_state_t | state, | |||
tag_t * | req | |||
) |
Ask the next available requestObject from the AI, given the request type.
ai | (I) |
cur_req | (I) Current requestobject |
type | (I) Type of request (sync/publish) |
state | (I) |
req | (O) The next request object |
AI_API int AI_ask_project_id | ( | tag_t | ai, | |
char | id[AI_id_size_c+1] | |||
) |
ai | (I) |
id | (O) |
AI_API int AI_ask_project_id2 | ( | tag_t | ai, | |
char ** | id | |||
) |
For project id
ai | (I) |
id | (OF) |
ai | (I) |
objId | (I) |
record | (O) |
AI_API int AI_ask_request_objects | ( | tag_t | ai, | |
Request_type_t | type, | |||
Request_state_t | state, | |||
int * | num, | |||
tag_t ** | req | |||
) |
Ask the requestObject from the AI, given the request type and/or state.
ai | (I) Owning AI |
type | (I) Type of request (sync/publish) |
state | (I) State of the request |
num | (O) Number of requestobject found |
req | (OF) num Tag list of requestobject |
AI_API int AI_ask_site_id | ( | tag_t | ai, | |
char | id[AI_id_size_c+1] | |||
) |
ai | (I) |
id | (O) |
AI_API int AI_ask_site_id2 | ( | tag_t | ai, | |
char ** | id | |||
) |
For Site id
ai | (I) |
id | (OF) |
AI_API int AI_ask_transfermode | ( | tag_t | ai, | |
PIE_direction_t | type, | |||
tag_t * | tm | |||
) |
ai | (I) |
type | (I) |
tm | (O) |
AI_API int AI_can_add_request | ( | tag_t | ai, | |
Request_type_t | type, | |||
logical * | ok | |||
) |
Ask whether we can add new request: right now the logical is:
ai | (I) Owning AI |
type | (I) Type of request (sync/publish) |
ok | (O) Whether ok to add or not |
AI_API int AI_create_instance | ( | const char * | type, | |
const char * | name, | |||
const char * | desc, | |||
tag_t * | ai | |||
) |
Create the AppInterface instance.
type | (I) |
name | (I) |
desc | (I) |
ai | (O) Tag of AppInterface instance |
AI_API int AI_create_request | ( | tag_t | ai, | |
const char * | name, | |||
const char * | desc, | |||
Request_type_t | reqType, | |||
tag_t * | req | |||
) |
Create a RequestObject with the specific type. Tasks will be performed:
ai | (I) Owning AI |
name | (I) Name |
desc | (I) Description |
reqType | (I) Type of request (sync/publish) |
req | (O) Requestobject created |
Export selected object through this AI. It will:
ai | (I) This AI |
num | (I) Number of objects |
objects | (I) Selcted objects |
partial | (I) Export as partial request |
Export selected object through this AI with Incremental Update. It will:
ai | (I) This AI |
num | (I) Number of objects |
objects | (I) Selcted objects |
partial | (I) Export as partial request |
AI_API int AI_find | ( | AI_search_criteria_t * | seach, | |
int * | num, | |||
tag_t ** | ais | |||
) |
Given the search criteria, find all the AIs in the database
seach | (I) Search criteria for AI |
num | (O) Number of AI found |
ais | (OF) num Tag list of AI |
AI_API int AI_init_module | ( | ) |
AI_API int AI_init_search | ( | AI_search_criteria_t * | seach | ) |
seach | (I) |
AI_API int AI_is_object_modified | ( | tag_t | ai, | |
const char * | objId, | |||
date_t | modDate, | |||
logical * | modified | |||
) |
Check the MasterRecord to see whether an Object is modified since last export. If this object is not recorded in MasterRecord, it is considered modified
ai | (I) |
objId | (I) Object UID |
modDate | (I) modDate |
modified | (O) Modified |
AI_API int AI_remove_record | ( | tag_t | ai, | |
const char * | objId | |||
) |
ai | (I) |
objId | (I) |
AI_API int AI_request_add_file_map | ( | tag_t | req, | |
const char * | fileRef, | |||
const char * | fileId | |||
) |
req | (I) |
fileRef | (I) |
fileId | (I) |
AI_API int AI_request_ask_scope | ( | tag_t | req, | |
int * | scope | |||
) |
Ask for the scope, which is Whole/Partial
req | (I) |
scope | (O) |
AI_API int AI_request_ask_state | ( | tag_t | req, | |
int * | stat | |||
) |
req | (I) |
stat | (O) |
AI_API int AI_request_ask_state_msg | ( | tag_t | req, | |
char | stat_msg[AI_msg_size_c+1] | |||
) |
req | (I) |
stat_msg | (O) |
AI_API int AI_request_ask_state_msg2 | ( | tag_t | req, | |
char ** | stat_msg | |||
) |
req | (I) |
stat_msg | (OF) |
AI_API int AI_request_ask_status | ( | tag_t | req, | |
int * | stat | |||
) |
req | (I) |
stat | (O) |
AI_API int AI_request_ask_status_msg | ( | tag_t | req, | |
char | stat_msg[AI_msg_size_c+1] | |||
) |
req | (I) |
stat_msg | (O) |
AI_API int AI_request_ask_status_msg2 | ( | tag_t | req, | |
char ** | stat_msg | |||
) |
req | (I) |
stat_msg | (OF) |
AI_API int AI_request_ask_structure_file | ( | tag_t | req, | |
Request_update_t | type, | |||
tag_t * | file | |||
) |
req | (I) |
type | (I) |
file | (O) |
AI_API int AI_request_ask_type | ( | tag_t | req, | |
int * | type | |||
) |
req | (I) |
type | (O) |
AI_API int AI_request_ask_update_type | ( | tag_t | req, | |
int * | update | |||
) |
Ask for update type, which is Full/Delta
req | (I) |
update | (O) |
Ask whether we can process this request
req | (I) Request |
ok | (O) Whether ok or not |
AI_API int AI_request_import_file | ( | tag_t | req, | |
const char * | fName, | |||
const char * | fRefId, | |||
int | fileType, | |||
const char * | appName, | |||
const char * | siteId, | |||
const char * | version, | |||
tag_t * | fileTag | |||
) |
Import the associated files (such as dataset file) to TC. If passed in ApplicationRef, it will be stored as PLMAppUID.
req | (I) |
fName | (I) Full file path |
fRefId | (I) File reference id, which can be either PLMXML element ID, or Application UID |
fileType | (I) File type |
appName | (I) Application name (optional) |
siteId | (I) Application site id (optional) |
version | (I) Version (optional) |
fileTag | (O) File tag after import |
Process request:
req | (I) Request object tag |
eco | (I) ECO object tag for incremental. It will be used for Publish request only |
Export selected objects only
req | (I) |
num_obj | (I) |
objs | (I) |
AI_API int AI_request_set_scope | ( | tag_t | req, | |
Request_scope_t | scope | |||
) |
req | (I) |
scope | (I) |
AI_API int AI_request_set_state | ( | tag_t | req, | |
Request_state_t | stat | |||
) |
req | (I) |
stat | (I) |
AI_API int AI_request_set_state_msg | ( | tag_t | req, | |
const char * | stat_msg | |||
) |
req | (I) |
stat_msg | (I) |
AI_API int AI_request_set_status | ( | tag_t | req, | |
Request_status_t | stat | |||
) |
req | (I) |
stat | (I) |
AI_API int AI_request_set_status_msg | ( | tag_t | req, | |
const char * | stat_msg | |||
) |
req | (I) |
stat_msg | (I) |
AI_API int AI_request_set_structure_file | ( | tag_t | req, | |
Request_update_t | type, | |||
tag_t | file | |||
) |
req | (I) |
type | (I) |
file | (I) |
AI_API int AI_request_set_update_type | ( | tag_t | req, | |
Request_update_t | update | |||
) |
req | (I) |
update | (I) |
AI_API int AI_save_records | ( | tag_t | ai | ) |
Save all the records to Database. Need to call this after MasterRecord is modified.
ai | (I) |
AI_API int AI_set_project_id | ( | tag_t | ai, | |
const char * | id | |||
) |
ai | (I) |
id | (I) |
AI_API int AI_set_transfermode | ( | tag_t | ai, | |
PIE_direction_t | type, | |||
tag_t | tm | |||
) |
ai | (I) |
type | (I) |
tm | (I) |