Skip to content

Commit

Permalink
SWITCHYARD-2561 Update README in quickstarts
Browse files Browse the repository at this point in the history
  • Loading branch information
cunningt committed Mar 13, 2015
1 parent 9ce065e commit 9176087
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 6 deletions.
37 changes: 35 additions & 2 deletions demos/helpdesk/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,40 @@ JBoss AS 7
Continue toggling back and forth as the users until all tasks are completed.
You can view the application server output in its console window to see the progression of the progress.

6. Undeploy the quickstart:
mvn clean -Pdeploy


Wildfly
----------
1. Start the application server:
${AS}/bin/standalone.sh

2. Build and deploy the web application:
mvn install -Pdeploy,wildfly

3. In a web browser window, use the web application:
Browse to http://localhost:8080/helpdesk/
Select the User you want to act as.
Note that you can toggle back and forth between users. (This would normally be automatically chosen based on the logged on user.)
So far there are no processes started, so there are no tasks.

4. In a different console window, start a process (this will use the SOAP gateway):
mvn exec:java
You can do this as many times as you wish, starting as many processes as you wish.

5. Going back to your web browser window:
As krisv (a developer), click the Submit button to get the list of tasks.
As krisv, review the tasks you want to perform and click the Submit button again.
As david (a user), click the Submit button to get the list of tasks. He will only have tasks if more details were required.
If there were user tasks, check the tasks you want to complete and click the Submit button again.
Continue toggling back and forth as the users until all tasks are completed.
You can view the application server output in its console window to see the progression of the progress.

6. Undeploy the quickstart:
mvn clean -Pdeploy,wildfly


Expected Output:
================
(Note: Your outcome might be different from below based on the result of the ticket review.)
Expand All @@ -63,8 +97,7 @@ INFO [org.switchyard.quickstarts.demos.helpdesk.TicketManagementServiceBean] (h
INFO [org.switchyard.quickstarts.demos.helpdesk.TicketManagementServiceBean] (http-/127.0.0.1:8080-1) ********** closing ticket **********
```

6. Undeploy the quickstart:
mvn clean -Pdeploy


## Further Reading

Expand Down
63 changes: 63 additions & 0 deletions demos/library/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,69 @@ Return acknowledged? true
```


Wildfly
----------

1. Start Wildfly in standalone-full mode:
```
${AS}/bin/standalone.sh
```

2. Build and deploy the Quickstart :
```
mvn install -Pdeploy,wildfly
```

3. Submit multiple webservice requests to invoke the SOAP gateways by using the bundled client.
```
mvn exec:java
```

<br/>
Expected Client-Side Output:
```
Received suggestion for book: World War Z (isbn: 978-0-307-35193-7)
Attempting 1st loan for isbn: 978-0-307-35193-7
1st loan approved? true
Attempting 2nd loan for isbn: 978-0-307-35193-7
2nd loan approved? false
Returning 1st loan for isbn: 978-0-307-35193-7
1st loan return acknowledged? true
Re-attempting 2nd loan for isbn: 978-0-307-35193-7
Re-attempt of 2nd loan approved? true
Received suggestion for book: The Zombie Survival Guide (isbn: 978-1-4000-5-80-2)
Attempting 3rd loan for isbn: 978-1-4000-5-80-2
3rd loan approved? true
Returning 2nd loan for isbn: 978-0-307-35193-7
2nd loan return acknowledged? true
Returning 3rd loan for isbn: 978-1-4000-5-80-2
3rd loan return acknowledged? true
```

<br/>
Expected Server-Side Output:
```
Attempting Loan...
Loan approved? true
Attempting Loan...
Loan approved? false
Returning Loan...
Return acknowledged? true
Attempting Loan...
Loan approved? true
Attempting Loan...
Loan approved? true
Returning Loan...
Return acknowledged? true
Returning Loan...
Return acknowledged? true
```

4. Undeploy the quickstart:
```
mvn clean -Pdeploy,wildfly
## Further Reading
1. [Rules Service Documentation](https://docs.jboss.org/author/display/SWITCHYARD/Rules)
Expand Down
37 changes: 33 additions & 4 deletions demos/orders/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,39 @@ JBoss AS 7
create a soap-ui project. Use the sample request (src/test/resources/xml/soap-request.xml)
as an example of a sample request. The output below is the expected output :


4. Undeploy the quickstart:

mvn clean -Pdeploy



Wildfly
----------
1. Start Wildfly in standalone mode:

${AS}/bin/standalone.sh

2. Build and deploy the quickstart:

mvn install -Pdeploy,wildfly

3. Submit a webservice request to invoke the SOAP gateway. There are a number of ways to do this :
- Submit a request with your preferred SOAP client - src/test/resources/xml contains
sample requests and the responses that you should see
- Use the simple bundled SOAP client and the sample request XML e.g.
<br/>
```
mvn exec:java
```

4. Undeploy the quickstart:

mvn clean -Pdeploy,wildfly




Expected Output
===============
```
Expand All @@ -57,10 +90,6 @@ Expected Output
</SOAP-ENV:Envelope>
```

4. Undeploy the quickstart:

mvn clean -Pdeploy


## Further Reading

Expand Down

0 comments on commit 9176087

Please sign in to comment.