ITK Function Reference

(V10000.1.0.60_20160308.00)
signoff.h
Go to the documentation of this file.
1 /*
2  Copyright 2012 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.
3  ==================================================
4  Copyright 2014
5  Siemens Product Lifecycle Management Software Inc.
6  All Rights Reserved.
7  ==================================================
8  Copyright 2012 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.
9 ==================================================*/
10 
20 /* */
21 
22 #ifndef SIGNOFF_H
23 #define SIGNOFF_H
24 
25 #include <epm/cr.h>
26 #include <epm/epm.h>
27 #include <epm/libepm_exports.h>
28 
49 #define SIGNOFF_ORIGIN_PROFILE 0
50 #define SIGNOFF_ORIGIN_ADHOC_USER 1
51 #define SIGNOFF_ORIGIN_ADHOC_RESOURCEPOOL 2
52 #define SIGNOFF_ORIGIN_ALIASLIST 3
53 #define SIGNOFF_ORIGIN_ADHOC_ALL_RESOURCEPOOL 4
54 #define SIGNOFF_ORIGIN_UNDEFINED 9999
55 
58 typedef enum signoff_type_e
59 {
64 
65 
67 typedef enum signoff_action_e
68 {
74 
76 #define SIGNOFF_APPROVE_DECISION "Approve"
77 #define SIGNOFF_REJECT_DECISION "Reject"
78 #define SIGNOFF_NO_DECISION "No Decision"
79 #define SIGNOFF_ACKNOWLEDGED_DECISION "Acknowledge"
80 #define SIGNOFF_NOT_ACKNOWLEDGED_DECISION "Not Acknowledge"
81 
82 #ifdef __cplusplus
83  extern "C"{
84 #endif
85 
95 extern EPM_API int CR_signoff_extent(
96  int* n_instances,
97  tag_t** instances
98  );
99 
106 extern EPM_API int EPM_signoff_extent(
107  int* n_instances,
108  tag_t** instances
109  );
110 
118 extern EPM_API int CR_create_signoff(
119  tag_t group_member,
120  tag_t* signoff
121  );
122 
129 extern EPM_API int CR_initialize_signoff(
130  tag_t signoff,
131  tag_t group_member
132  );
133 
137 extern EPM_API int EPM_initialize_signoff(
138  tag_t signoff,
139  tag_t group_member
140  );
141 
146 extern EPM_API int EPM_remove_signoffs(
147  tag_t task_tag,
148  int n_groupmembers,
149  tag_t* groupmembers
150  );
151 
156 extern EPM_API int CR_ask_signoff_member(
157  tag_t signoff,
158  tag_t* theMember
159  );
160 
174 extern EPM_API int EPM_ask_reviewers(
175  tag_t task_tag,
176  int* count,
177  tag_t** groupmembers
178  );
179 
186 extern EPM_API int CR_ask_signoff_groupmember(
187  tag_t signoff,
188  tag_t* group_member
189  );
190 
197 extern EPM_API int CR_ask_signoff_resource_pool(
198  tag_t signoff,
199  tag_t* resource_pool
200  );
201 
205 extern EPM_API int EPM_ask_signoff_resource_pool(
206  tag_t signoff,
207  tag_t* resource_pool
208  );
209 
219 extern EPM_API int EPM_ask_task_reviewers_group_member(
220  const tag_t task_tag,
221  int* group_member_count,
222  tag_t** group_members
223  );
224 
232 extern EPM_API int EPM_ask_task_reviewers_resource_pool(
233  const tag_t task_tag,
234  int* res_pool_count,
235  tag_t** res_pool_tags
236  );
237 
248 extern EPM_API int EPM_ask_task_reviewers_users(
249  const tag_t task_tag,
250  int* user_count,
251  tag_t** users
252  );
253 
265 extern EPM_API int EPM_ask_task_undecided_reviewers_users(
266  const tag_t task_tag,
267  int* user_count,
268  tag_t** users
269  );
270 
272 extern EPM_API int EPM_ask_unassigned_reviewer_types(
273  tag_t task_tag,
274  int* count,
275  tag_t** unassigned_accessors
276  );
277 
282 extern EPM_API int CR_ask_signoff_accessor(
283  tag_t signoff,
284  tag_t* acc
285  );
286 
288 extern EPM_API int EPM_ask_signoff_accessor(
289  tag_t signoff,
290  tag_t* acc
291  );
292 
297 extern EPM_API int CR_set_signoff_accessor(
298  tag_t signoff,
299  tag_t acc
300  );
301 
303 extern EPM_API int EPM_set_signoff_accessor(
304  tag_t signoff,
305  tag_t acc
306  );
307 
325 extern EPM_API int CR_set_signoff_decision(
326  tag_t signoff,
327  CR_signoff_decision_t decision,
328  const char comments[CR_comment_size_c + 1]
329  );
330 
347 extern EPM_API int CR_set_signoff_decision2(
348  tag_t signoff,
349  CR_signoff_decision_t decision,
350  const char *comments
351  );
352 
366 extern EPM_API int EPM_set_signoff_decision(
367  tag_t signoff,
368  EPM_signoff_decision_t decision,
369  const char *comments
370  );
371 
385 extern EPM_API int EPM_set_secure_signoff_decision(
386  tag_t signoff,
387  CR_signoff_decision_t decision,
388  const char comments[CR_comment_size_c + 1],
389  const char password[CR_comment_size_c + 1]
390  );
391 
405 extern EPM_API int EPM_set_secure_signoff_decision2(
406  tag_t signoff,
407  CR_signoff_decision_t decision,
408  const char *comments,
409  const char *password
410  );
411 
422 extern EPM_API int EPM_set_secure_signoff_decision3(
423  tag_t signoff,
424  EPM_signoff_decision_t decision,
425  const char *comments,
426  const char *password
427  );
428 
429 
440 extern EPM_API int CR_ask_signoff_decision(
441  tag_t signoff,
442  CR_signoff_decision_t* decision,
443  char comments[CR_comment_size_c + 1],
444  date_t* decision_date
445  );
446 
456 extern EPM_API int CR_ask_signoff_decision2(
457  tag_t signoff,
458  CR_signoff_decision_t* decision,
459  char **comments,
460  date_t* decision_date
461  );
462 
469 extern EPM_API int EPM_ask_signoff_decision(
470  tag_t signoff,
471  EPM_signoff_decision_t* decision,
472  char **comments,
473  date_t* decision_date
474  );
475 
480 extern EPM_API int CR_delegate_signoff(
481  tag_t signoff,
482  tag_t new_group_member_to_delegate_to,
483  logical add_audit_file
484  );
485 
486 extern EPM_API int EPM_delegate_signoff(
487  tag_t signoff,
488  tag_t new_group_member_to_delegate_to,
489  logical add_audit
490  );
491 
496 extern EPM_API int CR_compare_role_and_group(
497  tag_t signoff,
498  logical* match
499  );
500 
502 extern EPM_API int EPM_compare_role_and_group(
503  tag_t signoff,
504  logical* match
505  );
506 
511 extern EPM_API int EPM_create_signoff(
512  tag_t member,
513  int originType,
519  tag_t originProfile,
520  tag_t* signoff
521  );
522 
530 extern EPM_API int EPM_create_profile_signoff(
531  tag_t task,
532  tag_t member,
533  tag_t signoffProfile,
535  tag_t* signoff
536  );
537 
545 extern EPM_API int EPM_create_adhoc_signoff(
546  tag_t task,
547  tag_t member,
548  int* count,
550  tag_t** signoffs
551  );
552 
557 extern EPM_API int EPM_ask_signoff_member(
558  tag_t signoff,
559  tag_t* memberTag,
560  SIGNOFF_TYPE_t* memberType
564  );
565 
569 extern EPM_API int EPM_ask_signoff_origin_profile(
570  tag_t signoff,
571  tag_t* originProfile
573  );
574 
578 extern EPM_API int EPM_set_signoff_origin_profile(
579  tag_t signoff,
580  tag_t originProfile
582  );
583 
587 extern EPM_API int EPM_ask_signoff_origin_type(
588  tag_t signoffTag,
589  int* origin,
595  tag_t* originObject
596  );
597 
598 extern EPM_API int EPM_ask_signoff_current_task(
599  tag_t signoffTag,
600  tag_t* taskTag
601  );
602 
610 extern EPM_API int EPM_ask_last_signoff(
611  tag_t ws_object,
612  tag_t release_status_tag,
613  EPM_decision_t* decision,
614  char signer[WSO_name_size_c + 1],
615  date_t* sign_off_date
616  );
617 
623 extern EPM_API int EPM_ask_last_signoff2(
624  tag_t ws_object,
625  tag_t release_status_tag,
626  EPM_decision_t* decision,
627  char **signer,
628  date_t* sign_off_date
629  );
630 
640 extern EPM_API int EPM_ask_signoff_details(
641  tag_t ws_object,
642  tag_t release_status_tag,
643  int* no_of_signoffs,
644  EPM_decision_t** decisions,
645  char*** signers,
646  date_t** sign_off_dates
647  );
648 
659 extern EPM_API int EPM_delegate_signoff_with_comments(
660  tag_t signoff,
661  tag_t new_group_member_to_delegate_to,
662  logical add_audit,
663  const char* user_comments
664  );
665 
668 #ifdef __cplusplus
669 }
670 #endif
671 
672 #include <epm/libepm_undef.h>
673 #endif
674 
675