Skip to content

Commit

Permalink
Added python worker example
Browse files Browse the repository at this point in the history
  • Loading branch information
gardusig committed Jun 16, 2023
1 parent 82ac1f9 commit 25ddde8
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions docs/getting-started/adding-custom-code-worker.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,7 @@ View our documentation on [Conductor Clients & SDKs](/content/category/sdks) lis
</TabItem>
<TabItem value="Python" label="Python">

```java
// @TODO:Gustavo
@WorkerTask("fraud-check")
public String checkForFraud(@InputParam("amount") BigDecimal amount, @InputParam("accountId") String accountId) {
boolean isFraud = fraudService.isFraudulentTxn(accountId, amount);
if(isFraud) {
return "This transaction cannot be processed as its flagged for review.";
}
return "Deposit of " + amount + " has processed successfully";
}

```python dynamic https://github.com/conductor-sdk/python-sdk-examples/blob/upgrade-sdk-version-1.0.66/examples/worker/workers.py section=1 ../worker/workers.py
```

</TabItem>
Expand Down

0 comments on commit 25ddde8

Please sign in to comment.