1
22
23 package com.liferay.portlet.workflow.service.http;
24
25 import com.liferay.portal.kernel.log.Log;
26 import com.liferay.portal.kernel.log.LogFactoryUtil;
27 import com.liferay.portal.kernel.util.BooleanWrapper;
28 import com.liferay.portal.kernel.util.IntegerWrapper;
29 import com.liferay.portal.kernel.util.LongWrapper;
30 import com.liferay.portal.kernel.util.MethodWrapper;
31 import com.liferay.portal.kernel.util.NullWrapper;
32 import com.liferay.portal.security.auth.HttpPrincipal;
33 import com.liferay.portal.service.http.TunnelUtil;
34
35 import com.liferay.portlet.workflow.service.WorkflowComponentServiceUtil;
36
37
74 public class WorkflowComponentServiceHttp {
75 public static java.util.List getCurrentTasks(HttpPrincipal httpPrincipal,
76 long instanceId, long tokenId)
77 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
78 com.liferay.portal.SystemException {
79 try {
80 Object paramObj0 = new LongWrapper(instanceId);
81 Object paramObj1 = new LongWrapper(tokenId);
82 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
83 "getCurrentTasks", new Object[] { paramObj0, paramObj1 });
84 Object returnObj = null;
85
86 try {
87 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
88 }
89 catch (Exception e) {
90 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
91 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
92 }
93
94 if (e instanceof com.liferay.portal.SystemException) {
95 throw (com.liferay.portal.SystemException)e;
96 }
97
98 throw new com.liferay.portal.SystemException(e);
99 }
100
101 return (java.util.List)returnObj;
102 }
103 catch (com.liferay.portal.SystemException se) {
104 _log.error(se, se);
105 throw se;
106 }
107 }
108
109 public static java.lang.String getCurrentTasksXml(
110 HttpPrincipal httpPrincipal, long instanceId, long tokenId)
111 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
112 com.liferay.portal.SystemException {
113 try {
114 Object paramObj0 = new LongWrapper(instanceId);
115 Object paramObj1 = new LongWrapper(tokenId);
116 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
117 "getCurrentTasksXml", new Object[] { paramObj0, paramObj1 });
118 Object returnObj = null;
119
120 try {
121 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
122 }
123 catch (Exception e) {
124 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
125 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
126 }
127
128 if (e instanceof com.liferay.portal.SystemException) {
129 throw (com.liferay.portal.SystemException)e;
130 }
131
132 throw new com.liferay.portal.SystemException(e);
133 }
134
135 return (java.lang.String)returnObj;
136 }
137 catch (com.liferay.portal.SystemException se) {
138 _log.error(se, se);
139 throw se;
140 }
141 }
142
143 public static java.lang.String deploy(HttpPrincipal httpPrincipal,
144 java.lang.String xml)
145 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
146 com.liferay.portal.SystemException {
147 try {
148 Object paramObj0 = xml;
149
150 if (xml == null) {
151 paramObj0 = new NullWrapper("java.lang.String");
152 }
153
154 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
155 "deploy", new Object[] { paramObj0 });
156 Object returnObj = null;
157
158 try {
159 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
160 }
161 catch (Exception e) {
162 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
163 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
164 }
165
166 if (e instanceof com.liferay.portal.SystemException) {
167 throw (com.liferay.portal.SystemException)e;
168 }
169
170 throw new com.liferay.portal.SystemException(e);
171 }
172
173 return (java.lang.String)returnObj;
174 }
175 catch (com.liferay.portal.SystemException se) {
176 _log.error(se, se);
177 throw se;
178 }
179 }
180
181 public static java.lang.Object getDefinition(HttpPrincipal httpPrincipal,
182 long definitionId)
183 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
184 com.liferay.portal.SystemException {
185 try {
186 Object paramObj0 = new LongWrapper(definitionId);
187 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
188 "getDefinition", new Object[] { paramObj0 });
189 Object returnObj = null;
190
191 try {
192 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
193 }
194 catch (Exception e) {
195 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
196 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
197 }
198
199 if (e instanceof com.liferay.portal.SystemException) {
200 throw (com.liferay.portal.SystemException)e;
201 }
202
203 throw new com.liferay.portal.SystemException(e);
204 }
205
206 return (java.lang.Object)returnObj;
207 }
208 catch (com.liferay.portal.SystemException se) {
209 _log.error(se, se);
210 throw se;
211 }
212 }
213
214 public static java.util.List getDefinitions(HttpPrincipal httpPrincipal,
215 long definitionId, java.lang.String name, int begin, int end)
216 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
217 com.liferay.portal.SystemException {
218 try {
219 Object paramObj0 = new LongWrapper(definitionId);
220 Object paramObj1 = name;
221
222 if (name == null) {
223 paramObj1 = new NullWrapper("java.lang.String");
224 }
225
226 Object paramObj2 = new IntegerWrapper(begin);
227 Object paramObj3 = new IntegerWrapper(end);
228 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
229 "getDefinitions",
230 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
231 Object returnObj = null;
232
233 try {
234 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
235 }
236 catch (Exception e) {
237 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
238 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
239 }
240
241 if (e instanceof com.liferay.portal.SystemException) {
242 throw (com.liferay.portal.SystemException)e;
243 }
244
245 throw new com.liferay.portal.SystemException(e);
246 }
247
248 return (java.util.List)returnObj;
249 }
250 catch (com.liferay.portal.SystemException se) {
251 _log.error(se, se);
252 throw se;
253 }
254 }
255
256 public static java.lang.String getDefinitionsXml(
257 HttpPrincipal httpPrincipal, long definitionId, java.lang.String name,
258 int begin, int end)
259 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
260 com.liferay.portal.SystemException {
261 try {
262 Object paramObj0 = new LongWrapper(definitionId);
263 Object paramObj1 = name;
264
265 if (name == null) {
266 paramObj1 = new NullWrapper("java.lang.String");
267 }
268
269 Object paramObj2 = new IntegerWrapper(begin);
270 Object paramObj3 = new IntegerWrapper(end);
271 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
272 "getDefinitionsXml",
273 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
274 Object returnObj = null;
275
276 try {
277 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
278 }
279 catch (Exception e) {
280 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
281 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
282 }
283
284 if (e instanceof com.liferay.portal.SystemException) {
285 throw (com.liferay.portal.SystemException)e;
286 }
287
288 throw new com.liferay.portal.SystemException(e);
289 }
290
291 return (java.lang.String)returnObj;
292 }
293 catch (com.liferay.portal.SystemException se) {
294 _log.error(se, se);
295 throw se;
296 }
297 }
298
299 public static int getDefinitionsCount(HttpPrincipal httpPrincipal,
300 long definitionId, java.lang.String name)
301 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
302 com.liferay.portal.SystemException {
303 try {
304 Object paramObj0 = new LongWrapper(definitionId);
305 Object paramObj1 = name;
306
307 if (name == null) {
308 paramObj1 = new NullWrapper("java.lang.String");
309 }
310
311 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
312 "getDefinitionsCount", new Object[] { paramObj0, paramObj1 });
313 Object returnObj = null;
314
315 try {
316 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
317 }
318 catch (Exception e) {
319 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
320 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
321 }
322
323 if (e instanceof com.liferay.portal.SystemException) {
324 throw (com.liferay.portal.SystemException)e;
325 }
326
327 throw new com.liferay.portal.SystemException(e);
328 }
329
330 return ((Integer)returnObj).intValue();
331 }
332 catch (com.liferay.portal.SystemException se) {
333 _log.error(se, se);
334 throw se;
335 }
336 }
337
338 public static java.lang.String getDefinitionsCountXml(
339 HttpPrincipal httpPrincipal, long definitionId, java.lang.String name)
340 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
341 com.liferay.portal.SystemException {
342 try {
343 Object paramObj0 = new LongWrapper(definitionId);
344 Object paramObj1 = name;
345
346 if (name == null) {
347 paramObj1 = new NullWrapper("java.lang.String");
348 }
349
350 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
351 "getDefinitionsCountXml",
352 new Object[] { paramObj0, paramObj1 });
353 Object returnObj = null;
354
355 try {
356 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
357 }
358 catch (Exception e) {
359 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
360 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
361 }
362
363 if (e instanceof com.liferay.portal.SystemException) {
364 throw (com.liferay.portal.SystemException)e;
365 }
366
367 throw new com.liferay.portal.SystemException(e);
368 }
369
370 return (java.lang.String)returnObj;
371 }
372 catch (com.liferay.portal.SystemException se) {
373 _log.error(se, se);
374 throw se;
375 }
376 }
377
378 public static java.lang.String getDefinitionXml(
379 HttpPrincipal httpPrincipal, long definitionId)
380 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
381 com.liferay.portal.SystemException {
382 try {
383 Object paramObj0 = new LongWrapper(definitionId);
384 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
385 "getDefinitionXml", new Object[] { paramObj0 });
386 Object returnObj = null;
387
388 try {
389 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
390 }
391 catch (Exception e) {
392 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
393 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
394 }
395
396 if (e instanceof com.liferay.portal.SystemException) {
397 throw (com.liferay.portal.SystemException)e;
398 }
399
400 throw new com.liferay.portal.SystemException(e);
401 }
402
403 return (java.lang.String)returnObj;
404 }
405 catch (com.liferay.portal.SystemException se) {
406 _log.error(se, se);
407 throw se;
408 }
409 }
410
411 public static java.util.List getInstances(HttpPrincipal httpPrincipal,
412 long definitionId, long instanceId, java.lang.String definitionName,
413 java.lang.String definitionVersion, java.lang.String startDateGT,
414 java.lang.String startDateLT, java.lang.String endDateGT,
415 java.lang.String endDateLT, boolean hideEndedTasks,
416 boolean andOperator, int begin, int end)
417 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
418 com.liferay.portal.SystemException {
419 try {
420 Object paramObj0 = new LongWrapper(definitionId);
421 Object paramObj1 = new LongWrapper(instanceId);
422 Object paramObj2 = definitionName;
423
424 if (definitionName == null) {
425 paramObj2 = new NullWrapper("java.lang.String");
426 }
427
428 Object paramObj3 = definitionVersion;
429
430 if (definitionVersion == null) {
431 paramObj3 = new NullWrapper("java.lang.String");
432 }
433
434 Object paramObj4 = startDateGT;
435
436 if (startDateGT == null) {
437 paramObj4 = new NullWrapper("java.lang.String");
438 }
439
440 Object paramObj5 = startDateLT;
441
442 if (startDateLT == null) {
443 paramObj5 = new NullWrapper("java.lang.String");
444 }
445
446 Object paramObj6 = endDateGT;
447
448 if (endDateGT == null) {
449 paramObj6 = new NullWrapper("java.lang.String");
450 }
451
452 Object paramObj7 = endDateLT;
453
454 if (endDateLT == null) {
455 paramObj7 = new NullWrapper("java.lang.String");
456 }
457
458 Object paramObj8 = new BooleanWrapper(hideEndedTasks);
459 Object paramObj9 = new BooleanWrapper(andOperator);
460 Object paramObj10 = new IntegerWrapper(begin);
461 Object paramObj11 = new IntegerWrapper(end);
462 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
463 "getInstances",
464 new Object[] {
465 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
466 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
467 paramObj10, paramObj11
468 });
469 Object returnObj = null;
470
471 try {
472 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
473 }
474 catch (Exception e) {
475 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
476 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
477 }
478
479 if (e instanceof com.liferay.portal.SystemException) {
480 throw (com.liferay.portal.SystemException)e;
481 }
482
483 throw new com.liferay.portal.SystemException(e);
484 }
485
486 return (java.util.List)returnObj;
487 }
488 catch (com.liferay.portal.SystemException se) {
489 _log.error(se, se);
490 throw se;
491 }
492 }
493
494 public static int getInstancesCount(HttpPrincipal httpPrincipal,
495 long definitionId, long instanceId, java.lang.String definitionName,
496 java.lang.String definitionVersion, java.lang.String startDateGT,
497 java.lang.String startDateLT, java.lang.String endDateGT,
498 java.lang.String endDateLT, boolean hideEndedTasks, boolean andOperator)
499 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
500 com.liferay.portal.SystemException {
501 try {
502 Object paramObj0 = new LongWrapper(definitionId);
503 Object paramObj1 = new LongWrapper(instanceId);
504 Object paramObj2 = definitionName;
505
506 if (definitionName == null) {
507 paramObj2 = new NullWrapper("java.lang.String");
508 }
509
510 Object paramObj3 = definitionVersion;
511
512 if (definitionVersion == null) {
513 paramObj3 = new NullWrapper("java.lang.String");
514 }
515
516 Object paramObj4 = startDateGT;
517
518 if (startDateGT == null) {
519 paramObj4 = new NullWrapper("java.lang.String");
520 }
521
522 Object paramObj5 = startDateLT;
523
524 if (startDateLT == null) {
525 paramObj5 = new NullWrapper("java.lang.String");
526 }
527
528 Object paramObj6 = endDateGT;
529
530 if (endDateGT == null) {
531 paramObj6 = new NullWrapper("java.lang.String");
532 }
533
534 Object paramObj7 = endDateLT;
535
536 if (endDateLT == null) {
537 paramObj7 = new NullWrapper("java.lang.String");
538 }
539
540 Object paramObj8 = new BooleanWrapper(hideEndedTasks);
541 Object paramObj9 = new BooleanWrapper(andOperator);
542 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
543 "getInstancesCount",
544 new Object[] {
545 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
546 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9
547 });
548 Object returnObj = null;
549
550 try {
551 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
552 }
553 catch (Exception e) {
554 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
555 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
556 }
557
558 if (e instanceof com.liferay.portal.SystemException) {
559 throw (com.liferay.portal.SystemException)e;
560 }
561
562 throw new com.liferay.portal.SystemException(e);
563 }
564
565 return ((Integer)returnObj).intValue();
566 }
567 catch (com.liferay.portal.SystemException se) {
568 _log.error(se, se);
569 throw se;
570 }
571 }
572
573 public static java.lang.String getInstancesCountXml(
574 HttpPrincipal httpPrincipal, long definitionId, long instanceId,
575 java.lang.String definitionName, java.lang.String definitionVersion,
576 java.lang.String startDateGT, java.lang.String startDateLT,
577 java.lang.String endDateGT, java.lang.String endDateLT,
578 boolean hideEndedTasks, boolean andOperator)
579 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
580 com.liferay.portal.SystemException {
581 try {
582 Object paramObj0 = new LongWrapper(definitionId);
583 Object paramObj1 = new LongWrapper(instanceId);
584 Object paramObj2 = definitionName;
585
586 if (definitionName == null) {
587 paramObj2 = new NullWrapper("java.lang.String");
588 }
589
590 Object paramObj3 = definitionVersion;
591
592 if (definitionVersion == null) {
593 paramObj3 = new NullWrapper("java.lang.String");
594 }
595
596 Object paramObj4 = startDateGT;
597
598 if (startDateGT == null) {
599 paramObj4 = new NullWrapper("java.lang.String");
600 }
601
602 Object paramObj5 = startDateLT;
603
604 if (startDateLT == null) {
605 paramObj5 = new NullWrapper("java.lang.String");
606 }
607
608 Object paramObj6 = endDateGT;
609
610 if (endDateGT == null) {
611 paramObj6 = new NullWrapper("java.lang.String");
612 }
613
614 Object paramObj7 = endDateLT;
615
616 if (endDateLT == null) {
617 paramObj7 = new NullWrapper("java.lang.String");
618 }
619
620 Object paramObj8 = new BooleanWrapper(hideEndedTasks);
621 Object paramObj9 = new BooleanWrapper(andOperator);
622 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
623 "getInstancesCountXml",
624 new Object[] {
625 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
626 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9
627 });
628 Object returnObj = null;
629
630 try {
631 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
632 }
633 catch (Exception e) {
634 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
635 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
636 }
637
638 if (e instanceof com.liferay.portal.SystemException) {
639 throw (com.liferay.portal.SystemException)e;
640 }
641
642 throw new com.liferay.portal.SystemException(e);
643 }
644
645 return (java.lang.String)returnObj;
646 }
647 catch (com.liferay.portal.SystemException se) {
648 _log.error(se, se);
649 throw se;
650 }
651 }
652
653 public static java.lang.String getInstancesXml(
654 HttpPrincipal httpPrincipal, long definitionId, long instanceId,
655 java.lang.String definitionName, java.lang.String definitionVersion,
656 java.lang.String startDateGT, java.lang.String startDateLT,
657 java.lang.String endDateGT, java.lang.String endDateLT,
658 boolean hideEndedTasks, boolean andOperator, int begin, int end)
659 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
660 com.liferay.portal.SystemException {
661 try {
662 Object paramObj0 = new LongWrapper(definitionId);
663 Object paramObj1 = new LongWrapper(instanceId);
664 Object paramObj2 = definitionName;
665
666 if (definitionName == null) {
667 paramObj2 = new NullWrapper("java.lang.String");
668 }
669
670 Object paramObj3 = definitionVersion;
671
672 if (definitionVersion == null) {
673 paramObj3 = new NullWrapper("java.lang.String");
674 }
675
676 Object paramObj4 = startDateGT;
677
678 if (startDateGT == null) {
679 paramObj4 = new NullWrapper("java.lang.String");
680 }
681
682 Object paramObj5 = startDateLT;
683
684 if (startDateLT == null) {
685 paramObj5 = new NullWrapper("java.lang.String");
686 }
687
688 Object paramObj6 = endDateGT;
689
690 if (endDateGT == null) {
691 paramObj6 = new NullWrapper("java.lang.String");
692 }
693
694 Object paramObj7 = endDateLT;
695
696 if (endDateLT == null) {
697 paramObj7 = new NullWrapper("java.lang.String");
698 }
699
700 Object paramObj8 = new BooleanWrapper(hideEndedTasks);
701 Object paramObj9 = new BooleanWrapper(andOperator);
702 Object paramObj10 = new IntegerWrapper(begin);
703 Object paramObj11 = new IntegerWrapper(end);
704 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
705 "getInstancesXml",
706 new Object[] {
707 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
708 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
709 paramObj10, paramObj11
710 });
711 Object returnObj = null;
712
713 try {
714 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
715 }
716 catch (Exception e) {
717 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
718 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
719 }
720
721 if (e instanceof com.liferay.portal.SystemException) {
722 throw (com.liferay.portal.SystemException)e;
723 }
724
725 throw new com.liferay.portal.SystemException(e);
726 }
727
728 return (java.lang.String)returnObj;
729 }
730 catch (com.liferay.portal.SystemException se) {
731 _log.error(se, se);
732 throw se;
733 }
734 }
735
736 public static java.util.List getTaskFormElements(
737 HttpPrincipal httpPrincipal, long taskId)
738 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
739 com.liferay.portal.SystemException {
740 try {
741 Object paramObj0 = new LongWrapper(taskId);
742 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
743 "getTaskFormElements", new Object[] { paramObj0 });
744 Object returnObj = null;
745
746 try {
747 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
748 }
749 catch (Exception e) {
750 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
751 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
752 }
753
754 if (e instanceof com.liferay.portal.SystemException) {
755 throw (com.liferay.portal.SystemException)e;
756 }
757
758 throw new com.liferay.portal.SystemException(e);
759 }
760
761 return (java.util.List)returnObj;
762 }
763 catch (com.liferay.portal.SystemException se) {
764 _log.error(se, se);
765 throw se;
766 }
767 }
768
769 public static java.lang.String getTaskFormElementsXml(
770 HttpPrincipal httpPrincipal, long taskId)
771 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
772 com.liferay.portal.SystemException {
773 try {
774 Object paramObj0 = new LongWrapper(taskId);
775 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
776 "getTaskFormElementsXml", new Object[] { paramObj0 });
777 Object returnObj = null;
778
779 try {
780 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
781 }
782 catch (Exception e) {
783 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
784 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
785 }
786
787 if (e instanceof com.liferay.portal.SystemException) {
788 throw (com.liferay.portal.SystemException)e;
789 }
790
791 throw new com.liferay.portal.SystemException(e);
792 }
793
794 return (java.lang.String)returnObj;
795 }
796 catch (com.liferay.portal.SystemException se) {
797 _log.error(se, se);
798 throw se;
799 }
800 }
801
802 public static java.util.List getTaskTransitions(
803 HttpPrincipal httpPrincipal, long taskId)
804 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
805 com.liferay.portal.SystemException {
806 try {
807 Object paramObj0 = new LongWrapper(taskId);
808 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
809 "getTaskTransitions", new Object[] { paramObj0 });
810 Object returnObj = null;
811
812 try {
813 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
814 }
815 catch (Exception e) {
816 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
817 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
818 }
819
820 if (e instanceof com.liferay.portal.SystemException) {
821 throw (com.liferay.portal.SystemException)e;
822 }
823
824 throw new com.liferay.portal.SystemException(e);
825 }
826
827 return (java.util.List)returnObj;
828 }
829 catch (com.liferay.portal.SystemException se) {
830 _log.error(se, se);
831 throw se;
832 }
833 }
834
835 public static java.lang.String getTaskTransitionsXml(
836 HttpPrincipal httpPrincipal, long taskId)
837 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
838 com.liferay.portal.SystemException {
839 try {
840 Object paramObj0 = new LongWrapper(taskId);
841 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
842 "getTaskTransitionsXml", new Object[] { paramObj0 });
843 Object returnObj = null;
844
845 try {
846 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
847 }
848 catch (Exception e) {
849 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
850 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
851 }
852
853 if (e instanceof com.liferay.portal.SystemException) {
854 throw (com.liferay.portal.SystemException)e;
855 }
856
857 throw new com.liferay.portal.SystemException(e);
858 }
859
860 return (java.lang.String)returnObj;
861 }
862 catch (com.liferay.portal.SystemException se) {
863 _log.error(se, se);
864 throw se;
865 }
866 }
867
868 public static java.util.List getUserTasks(HttpPrincipal httpPrincipal,
869 long instanceId, java.lang.String taskName,
870 java.lang.String definitionName, java.lang.String assignedTo,
871 java.lang.String createDateGT, java.lang.String createDateLT,
872 java.lang.String startDateGT, java.lang.String startDateLT,
873 java.lang.String endDateGT, java.lang.String endDateLT,
874 boolean hideEndedTasks, boolean andOperator, int begin, int end)
875 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
876 com.liferay.portal.SystemException {
877 try {
878 Object paramObj0 = new LongWrapper(instanceId);
879 Object paramObj1 = taskName;
880
881 if (taskName == null) {
882 paramObj1 = new NullWrapper("java.lang.String");
883 }
884
885 Object paramObj2 = definitionName;
886
887 if (definitionName == null) {
888 paramObj2 = new NullWrapper("java.lang.String");
889 }
890
891 Object paramObj3 = assignedTo;
892
893 if (assignedTo == null) {
894 paramObj3 = new NullWrapper("java.lang.String");
895 }
896
897 Object paramObj4 = createDateGT;
898
899 if (createDateGT == null) {
900 paramObj4 = new NullWrapper("java.lang.String");
901 }
902
903 Object paramObj5 = createDateLT;
904
905 if (createDateLT == null) {
906 paramObj5 = new NullWrapper("java.lang.String");
907 }
908
909 Object paramObj6 = startDateGT;
910
911 if (startDateGT == null) {
912 paramObj6 = new NullWrapper("java.lang.String");
913 }
914
915 Object paramObj7 = startDateLT;
916
917 if (startDateLT == null) {
918 paramObj7 = new NullWrapper("java.lang.String");
919 }
920
921 Object paramObj8 = endDateGT;
922
923 if (endDateGT == null) {
924 paramObj8 = new NullWrapper("java.lang.String");
925 }
926
927 Object paramObj9 = endDateLT;
928
929 if (endDateLT == null) {
930 paramObj9 = new NullWrapper("java.lang.String");
931 }
932
933 Object paramObj10 = new BooleanWrapper(hideEndedTasks);
934 Object paramObj11 = new BooleanWrapper(andOperator);
935 Object paramObj12 = new IntegerWrapper(begin);
936 Object paramObj13 = new IntegerWrapper(end);
937 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
938 "getUserTasks",
939 new Object[] {
940 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
941 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
942 paramObj10, paramObj11, paramObj12, paramObj13
943 });
944 Object returnObj = null;
945
946 try {
947 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
948 }
949 catch (Exception e) {
950 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
951 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
952 }
953
954 if (e instanceof com.liferay.portal.SystemException) {
955 throw (com.liferay.portal.SystemException)e;
956 }
957
958 throw new com.liferay.portal.SystemException(e);
959 }
960
961 return (java.util.List)returnObj;
962 }
963 catch (com.liferay.portal.SystemException se) {
964 _log.error(se, se);
965 throw se;
966 }
967 }
968
969 public static int getUserTasksCount(HttpPrincipal httpPrincipal,
970 long instanceId, java.lang.String taskName,
971 java.lang.String definitionName, java.lang.String assignedTo,
972 java.lang.String createDateGT, java.lang.String createDateLT,
973 java.lang.String startDateGT, java.lang.String startDateLT,
974 java.lang.String endDateGT, java.lang.String endDateLT,
975 boolean hideEndedTasks, boolean andOperator)
976 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
977 com.liferay.portal.SystemException {
978 try {
979 Object paramObj0 = new LongWrapper(instanceId);
980 Object paramObj1 = taskName;
981
982 if (taskName == null) {
983 paramObj1 = new NullWrapper("java.lang.String");
984 }
985
986 Object paramObj2 = definitionName;
987
988 if (definitionName == null) {
989 paramObj2 = new NullWrapper("java.lang.String");
990 }
991
992 Object paramObj3 = assignedTo;
993
994 if (assignedTo == null) {
995 paramObj3 = new NullWrapper("java.lang.String");
996 }
997
998 Object paramObj4 = createDateGT;
999
1000 if (createDateGT == null) {
1001 paramObj4 = new NullWrapper("java.lang.String");
1002 }
1003
1004 Object paramObj5 = createDateLT;
1005
1006 if (createDateLT == null) {
1007 paramObj5 = new NullWrapper("java.lang.String");
1008 }
1009
1010 Object paramObj6 = startDateGT;
1011
1012 if (startDateGT == null) {
1013 paramObj6 = new NullWrapper("java.lang.String");
1014 }
1015
1016 Object paramObj7 = startDateLT;
1017
1018 if (startDateLT == null) {
1019 paramObj7 = new NullWrapper("java.lang.String");
1020 }
1021
1022 Object paramObj8 = endDateGT;
1023
1024 if (endDateGT == null) {
1025 paramObj8 = new NullWrapper("java.lang.String");
1026 }
1027
1028 Object paramObj9 = endDateLT;
1029
1030 if (endDateLT == null) {
1031 paramObj9 = new NullWrapper("java.lang.String");
1032 }
1033
1034 Object paramObj10 = new BooleanWrapper(hideEndedTasks);
1035 Object paramObj11 = new BooleanWrapper(andOperator);
1036 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
1037 "getUserTasksCount",
1038 new Object[] {
1039 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1040 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
1041 paramObj10, paramObj11
1042 });
1043 Object returnObj = null;
1044
1045 try {
1046 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1047 }
1048 catch (Exception e) {
1049 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
1050 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
1051 }
1052
1053 if (e instanceof com.liferay.portal.SystemException) {
1054 throw (com.liferay.portal.SystemException)e;
1055 }
1056
1057 throw new com.liferay.portal.SystemException(e);
1058 }
1059
1060 return ((Integer)returnObj).intValue();
1061 }
1062 catch (com.liferay.portal.SystemException se) {
1063 _log.error(se, se);
1064 throw se;
1065 }
1066 }
1067
1068 public static java.lang.String getUserTasksCountXml(
1069 HttpPrincipal httpPrincipal, long instanceId,
1070 java.lang.String taskName, java.lang.String definitionName,
1071 java.lang.String assignedTo, java.lang.String createDateGT,
1072 java.lang.String createDateLT, java.lang.String startDateGT,
1073 java.lang.String startDateLT, java.lang.String endDateGT,
1074 java.lang.String endDateLT, boolean hideEndedTasks, boolean andOperator)
1075 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
1076 com.liferay.portal.SystemException {
1077 try {
1078 Object paramObj0 = new LongWrapper(instanceId);
1079 Object paramObj1 = taskName;
1080
1081 if (taskName == null) {
1082 paramObj1 = new NullWrapper("java.lang.String");
1083 }
1084
1085 Object paramObj2 = definitionName;
1086
1087 if (definitionName == null) {
1088 paramObj2 = new NullWrapper("java.lang.String");
1089 }
1090
1091 Object paramObj3 = assignedTo;
1092
1093 if (assignedTo == null) {
1094 paramObj3 = new NullWrapper("java.lang.String");
1095 }
1096
1097 Object paramObj4 = createDateGT;
1098
1099 if (createDateGT == null) {
1100 paramObj4 = new NullWrapper("java.lang.String");
1101 }
1102
1103 Object paramObj5 = createDateLT;
1104
1105 if (createDateLT == null) {
1106 paramObj5 = new NullWrapper("java.lang.String");
1107 }
1108
1109 Object paramObj6 = startDateGT;
1110
1111 if (startDateGT == null) {
1112 paramObj6 = new NullWrapper("java.lang.String");
1113 }
1114
1115 Object paramObj7 = startDateLT;
1116
1117 if (startDateLT == null) {
1118 paramObj7 = new NullWrapper("java.lang.String");
1119 }
1120
1121 Object paramObj8 = endDateGT;
1122
1123 if (endDateGT == null) {
1124 paramObj8 = new NullWrapper("java.lang.String");
1125 }
1126
1127 Object paramObj9 = endDateLT;
1128
1129 if (endDateLT == null) {
1130 paramObj9 = new NullWrapper("java.lang.String");
1131 }
1132
1133 Object paramObj10 = new BooleanWrapper(hideEndedTasks);
1134 Object paramObj11 = new BooleanWrapper(andOperator);
1135 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
1136 "getUserTasksCountXml",
1137 new Object[] {
1138 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1139 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
1140 paramObj10, paramObj11
1141 });
1142 Object returnObj = null;
1143
1144 try {
1145 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1146 }
1147 catch (Exception e) {
1148 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
1149 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
1150 }
1151
1152 if (e instanceof com.liferay.portal.SystemException) {
1153 throw (com.liferay.portal.SystemException)e;
1154 }
1155
1156 throw new com.liferay.portal.SystemException(e);
1157 }
1158
1159 return (java.lang.String)returnObj;
1160 }
1161 catch (com.liferay.portal.SystemException se) {
1162 _log.error(se, se);
1163 throw se;
1164 }
1165 }
1166
1167 public static java.lang.String getUserTasksXml(
1168 HttpPrincipal httpPrincipal, long instanceId,
1169 java.lang.String taskName, java.lang.String definitionName,
1170 java.lang.String assignedTo, java.lang.String createDateGT,
1171 java.lang.String createDateLT, java.lang.String startDateGT,
1172 java.lang.String startDateLT, java.lang.String endDateGT,
1173 java.lang.String endDateLT, boolean hideEndedTasks,
1174 boolean andOperator, int begin, int end)
1175 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
1176 com.liferay.portal.SystemException {
1177 try {
1178 Object paramObj0 = new LongWrapper(instanceId);
1179 Object paramObj1 = taskName;
1180
1181 if (taskName == null) {
1182 paramObj1 = new NullWrapper("java.lang.String");
1183 }
1184
1185 Object paramObj2 = definitionName;
1186
1187 if (definitionName == null) {
1188 paramObj2 = new NullWrapper("java.lang.String");
1189 }
1190
1191 Object paramObj3 = assignedTo;
1192
1193 if (assignedTo == null) {
1194 paramObj3 = new NullWrapper("java.lang.String");
1195 }
1196
1197 Object paramObj4 = createDateGT;
1198
1199 if (createDateGT == null) {
1200 paramObj4 = new NullWrapper("java.lang.String");
1201 }
1202
1203 Object paramObj5 = createDateLT;
1204
1205 if (createDateLT == null) {
1206 paramObj5 = new NullWrapper("java.lang.String");
1207 }
1208
1209 Object paramObj6 = startDateGT;
1210
1211 if (startDateGT == null) {
1212 paramObj6 = new NullWrapper("java.lang.String");
1213 }
1214
1215 Object paramObj7 = startDateLT;
1216
1217 if (startDateLT == null) {
1218 paramObj7 = new NullWrapper("java.lang.String");
1219 }
1220
1221 Object paramObj8 = endDateGT;
1222
1223 if (endDateGT == null) {
1224 paramObj8 = new NullWrapper("java.lang.String");
1225 }
1226
1227 Object paramObj9 = endDateLT;
1228
1229 if (endDateLT == null) {
1230 paramObj9 = new NullWrapper("java.lang.String");
1231 }
1232
1233 Object paramObj10 = new BooleanWrapper(hideEndedTasks);
1234 Object paramObj11 = new BooleanWrapper(andOperator);
1235 Object paramObj12 = new IntegerWrapper(begin);
1236 Object paramObj13 = new IntegerWrapper(end);
1237 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
1238 "getUserTasksXml",
1239 new Object[] {
1240 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1241 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
1242 paramObj10, paramObj11, paramObj12, paramObj13
1243 });
1244 Object returnObj = null;
1245
1246 try {
1247 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1248 }
1249 catch (Exception e) {
1250 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
1251 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
1252 }
1253
1254 if (e instanceof com.liferay.portal.SystemException) {
1255 throw (com.liferay.portal.SystemException)e;
1256 }
1257
1258 throw new com.liferay.portal.SystemException(e);
1259 }
1260
1261 return (java.lang.String)returnObj;
1262 }
1263 catch (com.liferay.portal.SystemException se) {
1264 _log.error(se, se);
1265 throw se;
1266 }
1267 }
1268
1269 public static void signalInstance(HttpPrincipal httpPrincipal,
1270 long instanceId)
1271 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
1272 com.liferay.portal.SystemException {
1273 try {
1274 Object paramObj0 = new LongWrapper(instanceId);
1275 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
1276 "signalInstance", new Object[] { paramObj0 });
1277
1278 try {
1279 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1280 }
1281 catch (Exception e) {
1282 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
1283 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
1284 }
1285
1286 if (e instanceof com.liferay.portal.SystemException) {
1287 throw (com.liferay.portal.SystemException)e;
1288 }
1289
1290 throw new com.liferay.portal.SystemException(e);
1291 }
1292 }
1293 catch (com.liferay.portal.SystemException se) {
1294 _log.error(se, se);
1295 throw se;
1296 }
1297 }
1298
1299 public static void signalToken(HttpPrincipal httpPrincipal,
1300 long instanceId, long tokenId)
1301 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
1302 com.liferay.portal.SystemException {
1303 try {
1304 Object paramObj0 = new LongWrapper(instanceId);
1305 Object paramObj1 = new LongWrapper(tokenId);
1306 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
1307 "signalToken", new Object[] { paramObj0, paramObj1 });
1308
1309 try {
1310 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1311 }
1312 catch (Exception e) {
1313 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
1314 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
1315 }
1316
1317 if (e instanceof com.liferay.portal.SystemException) {
1318 throw (com.liferay.portal.SystemException)e;
1319 }
1320
1321 throw new com.liferay.portal.SystemException(e);
1322 }
1323 }
1324 catch (com.liferay.portal.SystemException se) {
1325 _log.error(se, se);
1326 throw se;
1327 }
1328 }
1329
1330 public static java.lang.String startWorkflow(HttpPrincipal httpPrincipal,
1331 long definitionId)
1332 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
1333 com.liferay.portal.SystemException {
1334 try {
1335 Object paramObj0 = new LongWrapper(definitionId);
1336 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
1337 "startWorkflow", new Object[] { paramObj0 });
1338 Object returnObj = null;
1339
1340 try {
1341 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1342 }
1343 catch (Exception e) {
1344 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
1345 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
1346 }
1347
1348 if (e instanceof com.liferay.portal.SystemException) {
1349 throw (com.liferay.portal.SystemException)e;
1350 }
1351
1352 throw new com.liferay.portal.SystemException(e);
1353 }
1354
1355 return (java.lang.String)returnObj;
1356 }
1357 catch (com.liferay.portal.SystemException se) {
1358 _log.error(se, se);
1359 throw se;
1360 }
1361 }
1362
1363 public static java.util.Map updateTask(HttpPrincipal httpPrincipal,
1364 long taskId, java.lang.String transition, java.util.Map parameterMap)
1365 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
1366 com.liferay.portal.SystemException {
1367 try {
1368 Object paramObj0 = new LongWrapper(taskId);
1369 Object paramObj1 = transition;
1370
1371 if (transition == null) {
1372 paramObj1 = new NullWrapper("java.lang.String");
1373 }
1374
1375 Object paramObj2 = parameterMap;
1376
1377 if (parameterMap == null) {
1378 paramObj2 = new NullWrapper("java.util.Map");
1379 }
1380
1381 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
1382 "updateTask",
1383 new Object[] { paramObj0, paramObj1, paramObj2 });
1384 Object returnObj = null;
1385
1386 try {
1387 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1388 }
1389 catch (Exception e) {
1390 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
1391 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
1392 }
1393
1394 if (e instanceof com.liferay.portal.SystemException) {
1395 throw (com.liferay.portal.SystemException)e;
1396 }
1397
1398 throw new com.liferay.portal.SystemException(e);
1399 }
1400
1401 return (java.util.Map)returnObj;
1402 }
1403 catch (com.liferay.portal.SystemException se) {
1404 _log.error(se, se);
1405 throw se;
1406 }
1407 }
1408
1409 public static java.lang.String updateTaskXml(HttpPrincipal httpPrincipal,
1410 long taskId, java.lang.String transition, java.util.Map parameterMap)
1411 throws com.liferay.portal.kernel.jbi.WorkflowComponentException,
1412 com.liferay.portal.SystemException {
1413 try {
1414 Object paramObj0 = new LongWrapper(taskId);
1415 Object paramObj1 = transition;
1416
1417 if (transition == null) {
1418 paramObj1 = new NullWrapper("java.lang.String");
1419 }
1420
1421 Object paramObj2 = parameterMap;
1422
1423 if (parameterMap == null) {
1424 paramObj2 = new NullWrapper("java.util.Map");
1425 }
1426
1427 MethodWrapper methodWrapper = new MethodWrapper(WorkflowComponentServiceUtil.class.getName(),
1428 "updateTaskXml",
1429 new Object[] { paramObj0, paramObj1, paramObj2 });
1430 Object returnObj = null;
1431
1432 try {
1433 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1434 }
1435 catch (Exception e) {
1436 if (e instanceof com.liferay.portal.kernel.jbi.WorkflowComponentException) {
1437 throw (com.liferay.portal.kernel.jbi.WorkflowComponentException)e;
1438 }
1439
1440 if (e instanceof com.liferay.portal.SystemException) {
1441 throw (com.liferay.portal.SystemException)e;
1442 }
1443
1444 throw new com.liferay.portal.SystemException(e);
1445 }
1446
1447 return (java.lang.String)returnObj;
1448 }
1449 catch (com.liferay.portal.SystemException se) {
1450 _log.error(se, se);
1451 throw se;
1452 }
1453 }
1454
1455 private static Log _log = LogFactoryUtil.getLog(WorkflowComponentServiceHttp.class);
1456}