21 |
|
|
22 |
package nongnu.cashews.eclipse.gui; |
package nongnu.cashews.eclipse.gui; |
23 |
|
|
24 |
|
import java.net.URI; |
25 |
|
|
26 |
|
import nongnu.cashews.language.grounding.SoapOperation; |
27 |
|
import static nongnu.cashews.services.Processes.TEST_COMPOSITE_SEQUENCE; |
28 |
|
import nongnu.cashews.services.WorkflowService; |
29 |
|
import nongnu.cashews.soap.SoapClient; |
30 |
|
|
31 |
import org.eclipse.jface.window.ApplicationWindow; |
import org.eclipse.jface.window.ApplicationWindow; |
32 |
import org.eclipse.jface.wizard.WizardDialog; |
import org.eclipse.jface.wizard.WizardDialog; |
33 |
|
|
67 |
button.setText("Create a composite process"); |
button.setText("Create a composite process"); |
68 |
button.addSelectionListener(new SelectionAdapter() |
button.addSelectionListener(new SelectionAdapter() |
69 |
{ |
{ |
70 |
public void widgetSelected(SelectionEvent e) |
public void widgetSelected(SelectionEvent event) |
71 |
{ |
{ |
72 |
CashewsWizard wizard = new CashewsWizard(); |
CashewsWizard wizard = new CashewsWizard(); |
73 |
new WizardDialog(getShell(), wizard).open(); |
new WizardDialog(getShell(), wizard).open(); |
74 |
SoapClient client = new SoapClient(); |
try |
75 |
SoapOperation operation = getService(); |
{ |
76 |
client.call(operation, new URI("testWorkflow3"), |
SoapClient client = new SoapClient(); |
77 |
TEST_COMPOSITE_SEQUENCE); |
SoapOperation operation = WorkflowService.getService(); |
78 |
|
client.call(operation, new URI("testWorkflow3"), |
79 |
|
TEST_COMPOSITE_SEQUENCE); |
80 |
|
} |
81 |
|
catch (Exception e) |
82 |
|
{ |
83 |
|
e.printStackTrace(); |
84 |
|
} |
85 |
} |
} |
86 |
}); |
}); |
87 |
return button; |
return button; |